tmux swap to panels with hjkl
This commit is contained in:
parent
a008381f19
commit
8b69d95e80
|
@ -21,23 +21,24 @@ unbind h
|
||||||
unbind % # Split vertically
|
unbind % # Split vertically
|
||||||
unbind '"' # Split horizontally
|
unbind '"' # Split horizontally
|
||||||
|
|
||||||
# split horizontal with prefix-h or prefix-"
|
# split horizontal with or prefix-"
|
||||||
bind h split-window -h -c "#{pane_current_path}"
|
#bind h split-window -h -c "#{pane_current_path}"
|
||||||
bind '"' split-window -h -c "#{pane_current_path}"
|
bind '"' split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
# split vertical with prefix-v or prefix-%
|
# split vertical with or prefix-%
|
||||||
bind v split-window -v -c "#{pane_current_path}"
|
#bind v split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -v -c "#{pane_current_path}"
|
bind % split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
# navigate panels with vim or arrow keys
|
# navigate panels with vim or arrow keys
|
||||||
bind -n C-h select-pane -L
|
# arrows are the default
|
||||||
bind -n C-j select-pane -D
|
bind h select-pane -L
|
||||||
bind -n C-k select-pane -U
|
bind j select-pane -D
|
||||||
bind -n C-l select-pane -R
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
# reorder panels with prefix+shift+{jk}
|
# reorder panels with prefix+shift+{jk}
|
||||||
bind C-K swap-pane -U
|
bind K swap-pane -U
|
||||||
bind C-J swap-pane -D
|
bind J swap-pane -D
|
||||||
|
|
||||||
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
||||||
# default
|
# default
|
||||||
|
|
|
@ -21,23 +21,24 @@ unbind h
|
||||||
unbind % # Split vertically
|
unbind % # Split vertically
|
||||||
unbind '"' # Split horizontally
|
unbind '"' # Split horizontally
|
||||||
|
|
||||||
# split horizontal with prefix-h or prefix-"
|
# split horizontal with or prefix-"
|
||||||
bind h split-window -h -c "#{pane_current_path}"
|
#bind h split-window -h -c "#{pane_current_path}"
|
||||||
bind '"' split-window -h -c "#{pane_current_path}"
|
bind '"' split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
# split vertical with prefix-v or prefix-%
|
# split vertical with or prefix-%
|
||||||
bind v split-window -v -c "#{pane_current_path}"
|
#bind v split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -v -c "#{pane_current_path}"
|
bind % split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
# navigate panels with vim or arrow keys
|
# navigate panels with vim or arrow keys
|
||||||
bind -n C-h select-pane -L
|
# arrows are the default
|
||||||
bind -n C-j select-pane -D
|
bind h select-pane -L
|
||||||
bind -n C-k select-pane -U
|
bind j select-pane -D
|
||||||
bind -n C-l select-pane -R
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
# reorder panels with prefix+shift+{jk}
|
# reorder panels with prefix+shift+{jk}
|
||||||
bind C-K swap-pane -U
|
bind K swap-pane -U
|
||||||
bind C-J swap-pane -D
|
bind J swap-pane -D
|
||||||
|
|
||||||
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
||||||
# default
|
# default
|
||||||
|
|
Loading…
Reference in New Issue