feat(tmux): add window swap with shift and increase tms popup size
This commit is contained in:
@@ -45,13 +45,16 @@ set -g @fingers-key f
|
|||||||
# Binds
|
# Binds
|
||||||
bind-key 'x' kill-pane
|
bind-key 'x' kill-pane
|
||||||
bind-key 'h' previous-window
|
bind-key 'h' previous-window
|
||||||
|
bind-key 'H' swap-window -t -1\; select-window -t -1
|
||||||
bind-key 'j' switch-client -p
|
bind-key 'j' switch-client -p
|
||||||
bind-key 'k' switch-client -n
|
bind-key 'k' switch-client -n
|
||||||
bind-key 'l' next-window
|
bind-key 'l' next-window
|
||||||
|
bind-key 'L' swap-window -t +1\; select-window -t +1
|
||||||
bind-key 'n' new-window -c '#{pane_current_path}'
|
bind-key 'n' new-window -c '#{pane_current_path}'
|
||||||
bind-key 'N' new-window
|
bind-key 'N' new-window
|
||||||
bind-key 'c' kill-window
|
bind-key 'c' kill-window
|
||||||
|
|
||||||
|
|
||||||
# Decide whether we're in a Vim process
|
# Decide whether we're in a Vim process
|
||||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||||
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||||
@@ -66,7 +69,7 @@ unbind o
|
|||||||
bind-key 'o' if-shell "$is_vim" 'send-keys F8' 'select-pane -R'
|
bind-key 'o' if-shell "$is_vim" 'send-keys F8' 'select-pane -R'
|
||||||
|
|
||||||
unbind s
|
unbind s
|
||||||
bind-key 's' display-popup -E -w 60% -h 40% "~/.local/bin/tms"
|
bind-key 's' display-popup -E -w 60% -h 70% "~/.local/bin/tms"
|
||||||
unbind t
|
unbind t
|
||||||
bind-key 't' display-popup -E -w 60% -h 40% "~/.local/bin/change-theme.sh"
|
bind-key 't' display-popup -E -w 60% -h 40% "~/.local/bin/change-theme.sh"
|
||||||
unbind g
|
unbind g
|
||||||
|
|||||||
Reference in New Issue
Block a user