tmux: Support yy in copy-mode-vi

This commit is contained in:
2024-07-04 11:45:42 +02:00
parent c3ae99aa94
commit 4f5d853823

View File

@@ -139,8 +139,13 @@ bind -T copy-mode-vi y \
send -X copy-pipe send -X copy-pipe
} { } {
command-prompt -k -p (operator-pending) { command-prompt -k -p (operator-pending) {
send -X begin-selection # do line-wise yank on yy
send "%%" if -F "#{==:%%,y}" {
send -X select-line
} {
send -X begin-selection
send "%%"
}
send -X copy-pipe send -X copy-pipe
} }
} }