tmux: Mimic vim's Y in copy-mode-vi
This commit is contained in:
@@ -99,6 +99,8 @@ bind -T copy-mode-vi y \
|
|||||||
send -X copy-pipe
|
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
|
# Clear selection or cancel copy-mode when nothing is selected
|
||||||
bind -T copy-mode-vi Escape \
|
bind -T copy-mode-vi Escape \
|
||||||
|
|||||||
Reference in New Issue
Block a user