Nvim & Tmux : Resize on WASD.
This commit is contained in:
parent
2cfd342176
commit
eddd3023f3
|
@ -22,10 +22,10 @@ rekey_normal('<Leader>\\', '<cmd>vsplit<cr>')
|
||||||
rekey_normal('<Leader>-', '<cmd>split<cr>')
|
rekey_normal('<Leader>-', '<cmd>split<cr>')
|
||||||
rekey_normal('<Leader>=', '<C-w>=') -- equalize split sizes.
|
rekey_normal('<Leader>=', '<C-w>=') -- equalize split sizes.
|
||||||
rekey_normal('<Leader>c', '<C-w>q') -- Close split.
|
rekey_normal('<Leader>c', '<C-w>q') -- Close split.
|
||||||
rekey_normal('<Leader>j', '2<C-w>+')
|
rekey_normal('<Leader>W', '2<C-w>-')
|
||||||
rekey_normal('<Leader>k', '2<C-w>-')
|
rekey_normal('<Leader>S', '2<C-w>+')
|
||||||
rekey_normal('<Leader>l', '4<C-w>>')
|
rekey_normal('<Leader>A', '4<C-w><')
|
||||||
rekey_normal('<Leader>h', '4<C-w><')
|
rekey_normal('<Leader>D', '4<C-w>>')
|
||||||
|
|
||||||
-- close all hidden buffers.
|
-- close all hidden buffers.
|
||||||
rekey_normal('<Leader>X', '<cmd>BDelete hidden<cr><C-l>')
|
rekey_normal('<Leader>X', '<cmd>BDelete hidden<cr><C-l>')
|
||||||
|
|
|
@ -10,10 +10,10 @@ set -sg escape-time 0
|
||||||
bind -n M-\\ split-window -h -c "#{pane_current_path}"
|
bind -n M-\\ split-window -h -c "#{pane_current_path}"
|
||||||
bind -n M-- split-window -v -c "#{pane_current_path}"
|
bind -n M-- split-window -v -c "#{pane_current_path}"
|
||||||
bind -n M-= select-layout tiled
|
bind -n M-= select-layout tiled
|
||||||
bind -n M-h resize-pane -L 1
|
bind -n M-W resize-pane -U 1
|
||||||
bind -n M-j resize-pane -D 1
|
bind -n M-S resize-pane -D 1
|
||||||
bind -n M-k resize-pane -U 1
|
bind -n M-A resize-pane -L 1
|
||||||
bind -n M-l resize-pane -R 1
|
bind -n M-D resize-pane -R 1
|
||||||
unbind '"'
|
unbind '"'
|
||||||
unbind %
|
unbind %
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,10 @@ Key|Action
|
||||||
`Super+\\`|None.
|
`Super+\\`|None.
|
||||||
`Super+-`|None.
|
`Super+-`|None.
|
||||||
`Super+=`|None.
|
`Super+=`|None.
|
||||||
`Super+h`|None.
|
`Super+W`|None.
|
||||||
`Super+j`|None.
|
`Super+S`|None.
|
||||||
`Super+k`|None.
|
`Super+A`|None.
|
||||||
`Super+l`|None.
|
`Super+D`|None.
|
||||||
`Super+p`|None.
|
`Super+p`|None.
|
||||||
`Super+n`|None.
|
`Super+n`|None.
|
||||||
`Super+g`|None.
|
`Super+g`|None.
|
||||||
|
@ -58,10 +58,10 @@ Key|Action
|
||||||
`Meta+\\`|Split vertically.
|
`Meta+\\`|Split vertically.
|
||||||
`Meta+-`|Split horizontally.
|
`Meta+-`|Split horizontally.
|
||||||
`Meta+=`|Equalize splits.
|
`Meta+=`|Equalize splits.
|
||||||
`Meta+h`|Resize split to the left.
|
`Meta+W`|Resize split to the up.
|
||||||
`Meta+j`|Resize split to the down.
|
`Meta+S`|Resize split to the down.
|
||||||
`Meta+k`|Resize split to the up.
|
`Meta+A`|Resize split to the left.
|
||||||
`Meta+l`|Resize split to the right.
|
`Meta+D`|Resize split to the right.
|
||||||
`Meta+p`|Scroll up.
|
`Meta+p`|Scroll up.
|
||||||
`Meta+n`|Scroll down.
|
`Meta+n`|Scroll down.
|
||||||
`Meta+g`|Switch sessions.
|
`Meta+g`|Switch sessions.
|
||||||
|
@ -89,10 +89,10 @@ Key|Action
|
||||||
`Space+\|`|Split vertically.
|
`Space+\|`|Split vertically.
|
||||||
`Space+-`|Split horizontally.
|
`Space+-`|Split horizontally.
|
||||||
`Space+=`|Equalize splits.
|
`Space+=`|Equalize splits.
|
||||||
`Space+h`|Resize split to the left.
|
`Space+W`|Resize split to the up.
|
||||||
`Space+j`|Resize split to the down.
|
`Space+S`|Resize split to the down.
|
||||||
`Space+k`|Resize split to the up.
|
`Space+A`|Resize split to the left.
|
||||||
`Space+l`|Resize split to the right.
|
`Space+D`|Resize split to the right.
|
||||||
`Space+p`|None.
|
`Space+p`|None.
|
||||||
`Space+n`|None.
|
`Space+n`|None.
|
||||||
`Space+g`|None.
|
`Space+g`|None.
|
||||||
|
|
Reference in a new issue