tmux: small tweak to navigation commands
This commit is contained in:
parent
b60f7e345b
commit
418cb5b9c5
1 changed files with 7 additions and 5 deletions
|
@ -4,7 +4,7 @@ set -g prefix C-space
|
||||||
# Key bindings
|
# Key bindings
|
||||||
#
|
#
|
||||||
bind C-space send-prefix
|
bind C-space send-prefix
|
||||||
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; display "RELOADED"
|
bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display "RELOADED"
|
||||||
|
|
||||||
# Window/pane management (new windows/panes use the path in current pane)
|
# Window/pane management (new windows/panes use the path in current pane)
|
||||||
bind c new-window -c '#{pane_current_path}'
|
bind c new-window -c '#{pane_current_path}'
|
||||||
|
@ -12,12 +12,14 @@ bind | split-window -h -c '#{pane_current_path}'
|
||||||
bind - split-window -v -c '#{pane_current_path}'
|
bind - split-window -v -c '#{pane_current_path}'
|
||||||
bind x kill-pane
|
bind x kill-pane
|
||||||
bind X kill-window
|
bind X kill-window
|
||||||
bind n command-prompt 'rename-window %%'
|
bind W command-prompt 'rename-window %%'
|
||||||
bind N command-prompt 'rename-session %%'
|
bind S command-prompt 'rename-session %%'
|
||||||
|
bind s set synchronize-panes
|
||||||
|
|
||||||
# Move around
|
# Move around
|
||||||
bind . next-window
|
bind ^ last-window
|
||||||
bind , previous-window
|
bind -r C-n next-window
|
||||||
|
bind -r C-p previous-window
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
|
|
Loading…
Add table
Reference in a new issue