tmux add mapping
This commit is contained in:
parent
7942b79a61
commit
bc16de86b2
@ -3,7 +3,8 @@
|
|||||||
set -g prefix C-b
|
set -g prefix C-b
|
||||||
|
|
||||||
# Ctrl+a to send prefix to remote tmux
|
# Ctrl+a to send prefix to remote tmux
|
||||||
bind-key -n C-a send-prefix
|
bind -n C-a send-prefix
|
||||||
|
bind C-a send-keys C-a
|
||||||
|
|
||||||
# Zoom pane
|
# Zoom pane
|
||||||
bind -n M-f resize-pane -Z
|
bind -n M-f resize-pane -Z
|
||||||
@ -48,14 +49,14 @@ setw -g mode-keys vi
|
|||||||
bind-key v copy-mode
|
bind-key v copy-mode
|
||||||
bind p paste-buffer
|
bind p paste-buffer
|
||||||
|
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind-key -T copy-mode-vi c send-keys -X clear-selection
|
bind -T copy-mode-vi c send-keys -X clear-selection
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
bind -T copy-mode-vi y send-keys -X copy-selection
|
||||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||||
|
|
||||||
bind-key -T copy-mode-vi Escape send-keys -X cancel
|
bind -T copy-mode-vi Escape send-keys -X cancel
|
||||||
bind-key -T copy-mode-vi C-c send-keys -X cancel
|
bind -T copy-mode-vi C-c send-keys -X cancel
|
||||||
bind-key -T copy-mode-vi q send-keys -X cancel
|
bind -T copy-mode-vi q send-keys -X cancel
|
||||||
|
|
||||||
# Lock screen
|
# Lock screen
|
||||||
bind-key -T prefix l confirm-before -p "lock tmux? (y/n)" lock-session
|
bind-key -T prefix l confirm-before -p "lock tmux? (y/n)" lock-session
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user