Skip to content

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

Closed as not planned
Closed as not planned

Description

@silentjay

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

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Oct 29, 2025
  2. github-actions commented on Oct 29, 2025

    @github-actions
    Contributor

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

    • feat: Copy Mode for OpenCode #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.

  3. silentjay commented on Oct 29, 2025

    @silentjay
    Author

    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.

  4. rekram1-node commented on Oct 29, 2025

    @rekram1-node
    Contributor

    thanks for the feedback

  5. rektide commented on Dec 24, 2025

    @rektide
    Contributor

    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.

  6. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionUsed for feature requests, proposals, ideas, etc. Open discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions