Action for Paste Selection #2670
-
One of my favorite Terminal.app features is it has a menuitem ⇧⌘V for Paste Selection. What this does is whatever the last text I selected in Terminal.app was, it pastes that. So this is kind of like Implementation note: my initial guess here is Terminal.app uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is actually already supported in Ghostty, just not on macOS because I didn't realize you could make secondary named pasteboards. This is implemented because Linux has this natively and Linux users utilize this heavily (middle click always pastes from the selection clipboard on Linux). I have to do some more research but I think we could support this with minimal effort (mostly Swift work). Note on Linux, the selection clipboard also persists across restarts because it is connected to the desktop. Selecting text in another application overwrites it (it's global). So this is slightly different from how macOS behave. But from the way you describe it, Terminal.app seems to be mostly emulating this Linux feature within just a single application. |
Beta Was this translation helpful? Give feedback.
#2722