tmux: Support yy in copy-mode-vi
This commit is contained in:
@@ -139,8 +139,13 @@ bind -T copy-mode-vi y \
|
||||
send -X copy-pipe
|
||||
} {
|
||||
command-prompt -k -p (operator-pending) {
|
||||
# do line-wise yank on yy
|
||||
if -F "#{==:%%,y}" {
|
||||
send -X select-line
|
||||
} {
|
||||
send -X begin-selection
|
||||
send "%%"
|
||||
}
|
||||
send -X copy-pipe
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user