extra: tmux: add some copy-mode-vi keybinds
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
c1faa61748
commit
16e7b52d69
|
@ -1,3 +1,5 @@
|
||||||
|
# run `tmux list-keys` to get all current key mappings
|
||||||
|
|
||||||
unbind-key '"'
|
unbind-key '"'
|
||||||
unbind-key %
|
unbind-key %
|
||||||
|
|
||||||
|
@ -59,8 +61,20 @@ set-window-option -g automatic-rename
|
||||||
|
|
||||||
# Vi copypaste mode
|
# Vi copypaste mode
|
||||||
set-option -g mode-keys vi
|
set-option -g mode-keys vi
|
||||||
|
# selection & copy
|
||||||
bind-key -Tcopy-mode-vi v send -X begin-selection
|
bind-key -Tcopy-mode-vi v send -X begin-selection
|
||||||
bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel
|
bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel
|
||||||
|
# movement
|
||||||
|
bind-key -Tcopy-mode-vi d send -X cursor-left
|
||||||
|
bind-key -Tcopy-mode-vi h send -X cursor-down
|
||||||
|
bind-key -Tcopy-mode-vi t send -X cursor-up
|
||||||
|
bind-key -Tcopy-mode-vi n send -X cursor-right
|
||||||
|
# scrolling
|
||||||
|
bind-key -Tcopy-mode-vi C-e send -X halfpage-down
|
||||||
|
bind-key -Tcopy-mode-vi C-u send -X halfpage-up
|
||||||
|
# search
|
||||||
|
bind-key -Tcopy-mode-vi l send -X search-again
|
||||||
|
bind-key -Tcopy-mode-vi L send -X search-reverse
|
||||||
|
|
||||||
# Detach client
|
# Detach client
|
||||||
bind-key C-d detach-client
|
bind-key C-d detach-client
|
||||||
|
|
Loading…
Reference in a new issue