Skip to content

Cannot Select Text #212

Closed
Closed

Description

@mitsuhiko

In Claude Code I very often select text to copy it. I somehow do not manage to get text selection to work. This is using Ghostty on macOS.

opencode v0.1.104

Activity

  1. adamdotdevin commented on Jun 19, 2025

    @adamdotdevin
    Member

    i'm also going to add keybinds for navigating through messages and copying them

  2. MichaelVessia commented on Jun 27, 2025

    @MichaelVessia

    I ran into similar problems, but I have realized i can work around this in a bit of a hacky way by using the share feature and copying from the browser output. Holding the shift key down and copying in that manner led to copying all types of white space and artifacts from the output, so that wasn't very helpful for me, unfortunately.

  3. adamdotdevin commented on Jul 4, 2025

    @adamdotdevin
    Member

    i added some stuff around this but i'm not totally sold on it.

    you can use ctrl+up/down to navigate through messages in the session and then <leader>y to copy messages. curious what you all think.

  4. rochecompaan commented on Jul 5, 2025

    @rochecompaan

    As in #160, hold shift an highlight :)

    This text-selection mode is not constrained to a particular terminal pane. It selects the border, which means you have to clean it up before pasting multi-line selects. See the screenshot below.

    Image
  5. Regboy744 commented on Jul 13, 2025

    @Regboy744

    Thanks adamdotdevin, the ctrl+up/down plus ctrl-x y helps, but it copies the entire text. are you thinking about something where we can just select the text ? thanks so much

  6. marked Allow selecting text #927 as a duplicate of this issue on Jul 16, 2025
  7. adamdotdevin commented on Jul 16, 2025

    @adamdotdevin
    Member

    alright, wanted to update everyone on the state of this text copying situation.

    first, we obviously want to support selecting text with your mouse and copying it. unfortunately, it's a decent chunk of work to get that right (we have to implement it from scratch, for reasons i won't get into here). mostly it just keeps getting deferred because it's going to take a few days of head down effort, likely, and that means we have to put lots of stuff on hold.

    but we'll get there, hopefully very soon.

    in the meantime, we have a couple of solutions to copying text (aside from the /share hack):
    https://opencode.ai/docs/troubleshooting/#how-to-select-and-copy-text-in-the-tui

  8. thdxr commented on Jul 20, 2025

    @thdxr
    Member

    copy is implemented in v0.3.45

  9. Regboy744 commented on Jul 20, 2025

    @Regboy744

    Perfect, working fine . Thanks 😊

  10. p2arthur commented on Mar 8, 2026

    @p2arthur

    Most annoying thing. Can't copy commands...

  11. bodangren commented on Mar 29, 2026

    @bodangren

    Still can't copy on Ubuntu 24.04. "chopped" toast artists, but nothing goes in the paste buffer.

    Steps to reproduce: on Ubuntu 24.04, select text. Text does not stay selected. Today sisters that text has been copied. Neither ctrl-v, right click, not middle click will paste that text, and instead paste previous copies.

    Expected behavior: select text. Text starts selected. Using right click or ctrl-c, copy text to paste elsewhere.

  12. nickma82 commented on Apr 24, 2026

    @nickma82

    #13984 related

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions