Retain selection highlight after copying text to clipboard in tmux
5
votes
1
answer
2329
views
I'm using macOS and
Is there a way to prevent/disable the auto-clearing of selection after copying? I know about pressing Shift, then selecting the text, and then hitting Cmd + C to copy it to the clipboard, which preserves the selection. But this is relatively inefficient workflow. This is the same behavior with Alacritty/iTerm.
In iTerm, **without tmux**, selecting a text will auto-copy it in the clipboard, but the selection will not be auto-cleared.
tmux 3.1c
. When copying a text via mouse selection, the highlight will be auto-cleared after copying the text to clipboard, this will make it difficult to keep track the last line you copied when you go back to it:

Asked by Ranel Padon
(153 rep)
Mar 15, 2021, 12:40 AM
Last activity: Mar 15, 2021, 01:02 PM
Last activity: Mar 15, 2021, 01:02 PM