Nvim & Tmux : Resize on WASD.

This commit is contained in:
Dmitry Voronin 2024-02-04 02:23:36 +03:00
parent 2cfd342176
commit eddd3023f3
3 changed files with 20 additions and 20 deletions

View file

@ -22,10 +22,10 @@ rekey_normal('<Leader>\\', '<cmd>vsplit<cr>')
rekey_normal('<Leader>-', '<cmd>split<cr>')
rekey_normal('<Leader>=', '<C-w>=') -- equalize split sizes.
rekey_normal('<Leader>c', '<C-w>q') -- Close split.
rekey_normal('<Leader>j', '2<C-w>+')
rekey_normal('<Leader>k', '2<C-w>-')
rekey_normal('<Leader>l', '4<C-w>>')
rekey_normal('<Leader>h', '4<C-w><')
rekey_normal('<Leader>W', '2<C-w>-')
rekey_normal('<Leader>S', '2<C-w>+')
rekey_normal('<Leader>A', '4<C-w><')
rekey_normal('<Leader>D', '4<C-w>>')
-- close all hidden buffers.
rekey_normal('<Leader>X', '<cmd>BDelete hidden<cr><C-l>')

View file

@ -10,10 +10,10 @@ set -sg escape-time 0
bind -n M-\\ split-window -h -c "#{pane_current_path}"
bind -n M-- split-window -v -c "#{pane_current_path}"
bind -n M-= select-layout tiled
bind -n M-h resize-pane -L 1
bind -n M-j resize-pane -D 1
bind -n M-k resize-pane -U 1
bind -n M-l resize-pane -R 1
bind -n M-W resize-pane -U 1
bind -n M-S resize-pane -D 1
bind -n M-A resize-pane -L 1
bind -n M-D resize-pane -R 1
unbind '"'
unbind %

View file

@ -24,10 +24,10 @@ Key|Action
`Super+\\`|None.
`Super+-`|None.
`Super+=`|None.
`Super+h`|None.
`Super+j`|None.
`Super+k`|None.
`Super+l`|None.
`Super+W`|None.
`Super+S`|None.
`Super+A`|None.
`Super+D`|None.
`Super+p`|None.
`Super+n`|None.
`Super+g`|None.
@ -58,10 +58,10 @@ Key|Action
`Meta+\\`|Split vertically.
`Meta+-`|Split horizontally.
`Meta+=`|Equalize splits.
`Meta+h`|Resize split to the left.
`Meta+j`|Resize split to the down.
`Meta+k`|Resize split to the up.
`Meta+l`|Resize split to the right.
`Meta+W`|Resize split to the up.
`Meta+S`|Resize split to the down.
`Meta+A`|Resize split to the left.
`Meta+D`|Resize split to the right.
`Meta+p`|Scroll up.
`Meta+n`|Scroll down.
`Meta+g`|Switch sessions.
@ -89,10 +89,10 @@ Key|Action
`Space+\|`|Split vertically.
`Space+-`|Split horizontally.
`Space+=`|Equalize splits.
`Space+h`|Resize split to the left.
`Space+j`|Resize split to the down.
`Space+k`|Resize split to the up.
`Space+l`|Resize split to the right.
`Space+W`|Resize split to the up.
`Space+S`|Resize split to the down.
`Space+A`|Resize split to the left.
`Space+D`|Resize split to the right.
`Space+p`|None.
`Space+n`|None.
`Space+g`|None.