[FEATURE]: Easier Access to Code Snippets Output #2327

Open
opened 2026-02-16 17:35:08 -05:00 by yindo · 4 comments
Owner

Originally created by @silentjay on GitHub (Oct 29, 2025).

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I use OpenCode in Neovim, mostly in plan mode as a pure AI assistant, avoiding build mode when possible. Because of this, I often have to manually copy code snippets when needed from the message output using the terminal shortcuts ctrl-\ and ctrl-n, which feels clunky.

It would be extremely useful to have a way to jump directly into the result buffer within OpenCode itself, allowing users to access and copy code snippets — either in their entirety or through visual selection.

A good example of this behavior done well can be seen in Elia https://github.com/darrenburns/elia

Originally created by @silentjay on GitHub (Oct 29, 2025). ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request I use OpenCode in Neovim, mostly in plan mode as a pure AI assistant, avoiding build mode when possible. Because of this, I often have to manually copy code snippets when needed from the message output using the terminal shortcuts `ctrl-\` and `ctrl-n`, which feels clunky. It would be extremely useful to have a way to jump directly into the result buffer within OpenCode itself, allowing users to access and copy code snippets — either in their entirety or through visual selection. A good example of this behavior done well can be seen in Elia https://github.com/darrenburns/elia
yindo added the discussion label 2026-02-16 17:35:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2755: This issue discusses implementing a comprehensive copy mode for OpenCode, which addresses the same core problem - making it easier to copy code snippets and text from OpenCode output. It specifically mentions the need for keyboard-driven text selection and copying from AI responses, which aligns closely with your request for easier access to code snippets.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 29, 2025): This issue might be a duplicate of existing issues. Please check: - #2755: This issue discusses implementing a comprehensive copy mode for OpenCode, which addresses the same core problem - making it easier to copy code snippets and text from OpenCode output. It specifically mentions the need for keyboard-driven text selection and copying from AI responses, which aligns closely with your request for easier access to code snippets. Feel free to ignore if none of these address your specific case.
Author
Owner

@silentjay commented on GitHub (Oct 29, 2025):

This issue might be a duplicate of existing issues. Please check:

While a full blown copy mode to step through the model output in it's entirety would be nice, at this point I'd be happy just being able to jump through and copy the code snippets so i'm going to leave this up.

@silentjay commented on GitHub (Oct 29, 2025): > This issue might be a duplicate of existing issues. Please check: > > * [feat: Copy Mode for OpenCode #2755](https://github.com/sst/opencode/issues/2755): This While a full blown copy mode to step through the model output in it's entirety would be nice, at this point I'd be happy just being able to jump through and copy the code snippets so i'm going to leave this up.
Author
Owner

@rekram1-node commented on GitHub (Oct 29, 2025):

thanks for the feedback

@rekram1-node commented on GitHub (Oct 29, 2025): thanks for the feedback
Author
Owner

@rektide commented on GitHub (Dec 23, 2025):

i'm not set up to try this well yet, but i'd love to explore using bigcodegen/mcp-neovim-server to have the agent tell neovim what to do.

@rektide commented on GitHub (Dec 23, 2025): i'm not set up to try this well yet, but i'd love to explore using [bigcodegen/mcp-neovim-server](https://github.com/bigcodegen/mcp-neovim-server) to have the agent tell neovim what to do.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2327