tmux: Mimic vim's Y in copy-mode-vi

This commit is contained in:
2023-05-22 15:11:54 +02:00
parent 6ec99f3af7
commit 52963bf2be

View File

@@ -99,6 +99,8 @@ bind -T copy-mode-vi y \
send -X copy-pipe
}
}
bind -T copy-mode-vi Y \
if -F "#{selection_present}" { send -X copy-pipe-line } { send -X copy-pipe-end-of-line }
# Clear selection or cancel copy-mode when nothing is selected
bind -T copy-mode-vi Escape \