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 horizontally
|
||||
|
||||
# split horizontal with prefix-h or prefix-"
|
||||
bind h split-window -h -c "#{pane_current_path}"
|
||||
# split horizontal with or prefix-"
|
||||
#bind h split-window -h -c "#{pane_current_path}"
|
||||
bind '"' split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# split vertical with prefix-v or prefix-%
|
||||
bind v split-window -v -c "#{pane_current_path}"
|
||||
# split vertical with or prefix-%
|
||||
#bind v split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# navigate panels with vim or arrow keys
|
||||
bind -n C-h select-pane -L
|
||||
bind -n C-j select-pane -D
|
||||
bind -n C-k select-pane -U
|
||||
bind -n C-l select-pane -R
|
||||
# arrows are the default
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# reorder panels with prefix+shift+{jk}
|
||||
bind C-K swap-pane -U
|
||||
bind C-J swap-pane -D
|
||||
bind K swap-pane -U
|
||||
bind J swap-pane -D
|
||||
|
||||
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
||||
# default
|
||||
|
|
|
@ -21,23 +21,24 @@ unbind h
|
|||
unbind % # Split vertically
|
||||
unbind '"' # Split horizontally
|
||||
|
||||
# split horizontal with prefix-h or prefix-"
|
||||
bind h split-window -h -c "#{pane_current_path}"
|
||||
# split horizontal with or prefix-"
|
||||
#bind h split-window -h -c "#{pane_current_path}"
|
||||
bind '"' split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# split vertical with prefix-v or prefix-%
|
||||
bind v split-window -v -c "#{pane_current_path}"
|
||||
# split vertical with or prefix-%
|
||||
#bind v split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# navigate panels with vim or arrow keys
|
||||
bind -n C-h select-pane -L
|
||||
bind -n C-j select-pane -D
|
||||
bind -n C-k select-pane -U
|
||||
bind -n C-l select-pane -R
|
||||
# arrows are the default
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# reorder panels with prefix+shift+{jk}
|
||||
bind C-K swap-pane -U
|
||||
bind C-J swap-pane -D
|
||||
bind K swap-pane -U
|
||||
bind J swap-pane -D
|
||||
|
||||
# rotate panels with prefix+ctrl+o and prefix+ctrl+shift+o (reversed)
|
||||
# default
|
||||
|
|
Loading…
Reference in New Issue