fix(tmux): change navigation bindings
This commit is contained in:
+14
-4
@@ -173,7 +173,7 @@ unbind C-b
|
||||
bind-key C-z send-prefix
|
||||
|
||||
# Reload config
|
||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded"
|
||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded"
|
||||
|
||||
# Use Ctrl to select
|
||||
unbind -T root MouseDrag1Pane
|
||||
@@ -185,9 +185,19 @@ bind-key -T copy-mode-vi C-MouseDrag1Pane select-pane \; send-keys -X begi
|
||||
unbind -T copy-mode-vi MouseDragEnd1Pane
|
||||
|
||||
# More vim-like selection
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
|
||||
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode.
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
|
||||
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode.
|
||||
|
||||
bind-key -r k select-pane -U
|
||||
bind-key -r j select-pane -D
|
||||
bind-key -r h select-pane -L
|
||||
bind-key -r l select-pane -R
|
||||
bind-key -r C-k resize-pane -U
|
||||
bind-key -r C-j resize-pane -D
|
||||
bind-key -r C-h resize-pane -L
|
||||
bind-key -r C-l resize-pane -R
|
||||
bind-key o last-window
|
||||
|
||||
# Plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
||||
Reference in New Issue
Block a user