change tmux keys

main
Yax 3 years ago
parent e01fc4f8b1
commit 5fd339f116

@ -61,7 +61,7 @@ setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title set -g set-titles on # set terminal title
set -g set-titles-string '#h ❐ #S ● #I #W' set -g set-titles-string '❐ #S ● #I #W'
set -g display-panes-time 800 # slightly longer pane indicators display time set -g display-panes-time 800 # slightly longer pane indicators display time
@ -81,26 +81,19 @@ bind-key a send-prefix
setw -g monitor-activity on setw -g monitor-activity on
set -g visual-activity on set -g visual-activity on
# Splitting windows into panes with h and v # Split windows into panes: CTRL-A + h or v
bind-key h split-window -v -c '#{pane_current_path}' bind-key h split-window -v -c '#{pane_current_path}'
bind-key v split-window -h -c '#{pane_current_path}' bind-key v split-window -h -c '#{pane_current_path}'
# Set up resize-pane keys # Set up resize-pane keys: CTRL-ALT + h l j k
bind-key -n C-M-h resize-pane -L 1 bind-key -n C-M-h resize-pane -L 1
bind-key -n C-M-l resize-pane -R 1 bind-key -n C-M-l resize-pane -R 1
bind-key -n C-M-j resize-pane -D 1 bind-key -n C-M-j resize-pane -D 1
bind-key -n C-M-k resize-pane -U 1 bind-key -n C-M-k resize-pane -U 1
# Use Alt-arrow keys without prefix key to switch panes # Switch windows: CTRL-ALT + left or right arrows
# (not supported by Windows Terminal) bind-key -n C-M-Left previous-window
bind-key -n M-Left select-pane -L bind-key -n C-M-Right next-window
bind-key -n M-Right select-pane -R
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
# Shift arrow to switch windows
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
set-window-option -g mode-keys vi set-window-option -g mode-keys vi

Loading…
Cancel
Save