Cannot Select Text #146

Closed
opened 2026-02-16 17:25:24 -05:00 by yindo · 11 comments
Owner

Originally created by @mitsuhiko on GitHub (Jun 19, 2025).

Originally assigned to: @adamdotdevin on GitHub.

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
Originally created by @mitsuhiko on GitHub (Jun 19, 2025). Originally assigned to: @adamdotdevin on GitHub. 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 ```
yindo closed this issue 2026-02-16 17:25:24 -05:00
Author
Owner

@luuk00101 commented on GitHub (Jun 19, 2025):

As in #160, hold shift an highlight :)

@luuk00101 commented on GitHub (Jun 19, 2025): As in #160, hold shift an highlight :)
Author
Owner

@adamdotdevin commented on GitHub (Jun 19, 2025):

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

@adamdotdevin commented on GitHub (Jun 19, 2025): i'm also going to add keybinds for navigating through messages and copying them
Author
Owner

@luuk00101 commented on GitHub (Jun 19, 2025):

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

You really be pumping out the updates xD Keep it up ;) iOS' waiting

(Editing, just so it doesnt seem THAT rude :D)

@luuk00101 commented on GitHub (Jun 19, 2025): > i'm also going to add keybinds for navigating through messages and copying them You really be pumping out the updates xD Keep it up ;) iOS' waiting (Editing, just so it doesnt seem THAT rude :D)
Author
Owner

@MichaelVessia commented on GitHub (Jun 27, 2025):

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.

@MichaelVessia commented on GitHub (Jun 27, 2025): 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.
Author
Owner

@luuk00101 commented on GitHub (Jun 27, 2025):

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.

Think @adamdotdevin is working on a copy feature :)

@luuk00101 commented on GitHub (Jun 27, 2025): > 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. Think @adamdotdevin is working on a copy feature :)
Author
Owner

@adamdotdevin commented on GitHub (Jul 4, 2025):

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.

@adamdotdevin commented on GitHub (Jul 4, 2025): 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.
Author
Owner

@rochecompaan commented on GitHub (Jul 5, 2025):

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
@rochecompaan commented on GitHub (Jul 5, 2025): > As in [#160](https://github.com/sst/opencode/issues/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. <img width="3802" height="1854" alt="Image" src="https://github.com/user-attachments/assets/a6bebf99-0930-4d4d-9fd8-abefb62a3393" />
Author
Owner

@Regboy744 commented on GitHub (Jul 13, 2025):

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

@Regboy744 commented on GitHub (Jul 13, 2025): 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
Author
Owner

@adamdotdevin commented on GitHub (Jul 16, 2025):

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

@adamdotdevin commented on GitHub (Jul 16, 2025): 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
Author
Owner

@thdxr commented on GitHub (Jul 20, 2025):

copy is implemented in v0.3.45

@thdxr commented on GitHub (Jul 20, 2025): copy is implemented in v0.3.45
Author
Owner

@Regboy744 commented on GitHub (Jul 20, 2025):

Perfect, working fine . Thanks 😊

@Regboy744 commented on GitHub (Jul 20, 2025): Perfect, working fine . Thanks 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#146