Idiomatic paste behavior in Linux #12573
-
|
In Linux, terminal emulators have the following behavior Middle-click always pastes from the PRIMARY/SELECTION clipboard. This behavior persists regardless of the copy-on-select option (for those terminal emulators that support it) That behavior was added to Ghostty in #2347, along with the documentation below #12443 broke that, making Ghostty behave differently from all other emulators on Linux. I am not sure how terminal emulators behave in MacOS, I think #12443 should be limited to MacOS or a 4th option needs to be added to copy-on-select to modify CLIPBOARD but keep middle click paste from SELECTION. Since #12443 is scheduled for 1.4, I think more people will see the difference once that out I can't stress enough how much I appreciate the colossal amount of work everyone is putting. Thank you all |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 20 replies
-
|
I think the premise here is incorrect. #12443 did not break the standard Linux terminal behavior. With: copy-on-select = trueGhostty behaves like the standard Linux/X selection model:
That is the standard behavior. The behavior being requested here is different:
That may be useful, and it may match some terminals when they enable an extra “copy selection to clipboard” convenience option, but it is not the standard Linux/X clipboard model. So I don’t think #12443 should be reverted or limited to macOS. It makes If users want the older hybrid Ghostty behavior, I think that should be discussed as a separate extra mode, something like “copy selection to both clipboards, but keep middle-click on PRIMARY.” But that should be treated as a compatibility/convenience option, not as the standard Linux behavior. Also original discussion is here and it seems like more users agree with the merged behavior. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry if I was not clear, the issue is
selecting text writes both |
Beta Was this translation helpful? Give feedback.
-
|
This conversation is getting a little heated. Going to lock it for a while to let people's egos cool off. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @jcollie Just a final thought on the subject. I do understand the intent behind the patch. But as we thrive for a native experience on all supported operating systems (Now MacOS and Linux), we need to reconsider. On Linux, all apps (terminals as well as browsers, text editors, ... etc) paste from There are a considerable number of people who want copy to be to both I would appreciate we reconsider how #12443 is implemented, it needs to be a separate option and not force users to choose between copy-on-select to Thanks again for all the effort everyone has been putting into this amazing piece of software |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
#12600