feat(tmux): prefix bindings instead of using smart splits
This commit is contained in:
parent
f702f8167e
commit
0da4791437
2 changed files with 12 additions and 14 deletions
|
@ -26,20 +26,25 @@ bind c new-window -c "#{pane_current_path}"
|
||||||
bind-key C command-prompt -p "Enter window name:" "new-window -n '%%'"
|
bind-key C command-prompt -p "Enter window name:" "new-window -n '%%'"
|
||||||
|
|
||||||
# Move to the next and prev window
|
# Move to the next and prev window
|
||||||
bind-key l next-window
|
|
||||||
bind-key h previous-window
|
|
||||||
|
|
||||||
bind-key -n C-M-l next-window
|
bind-key -n C-M-l next-window
|
||||||
bind-key -n C-M-h previous-window
|
bind-key -n C-M-h previous-window
|
||||||
|
|
||||||
|
# Move to each pane
|
||||||
|
bind-key l select-pane -R
|
||||||
|
bind-key h select-pane -L
|
||||||
|
bind-key k select-pane -U
|
||||||
|
bind-key j select-pane -D
|
||||||
|
|
||||||
|
# Resize each pane
|
||||||
|
bind -n C-Left resize-pane -L 5
|
||||||
|
bind -n C-Right resize-pane -R 5
|
||||||
|
bind -n C-Up resize-pane -U 2
|
||||||
|
bind -n C-Down resize-pane -D 2
|
||||||
|
|
||||||
# Change window name
|
# Change window name
|
||||||
bind-key r command-prompt -I "#W" "rename-window '%%'"
|
bind-key r command-prompt -I "#W" "rename-window '%%'"
|
||||||
bind-key R command-prompt -I "#W" "rename-session '%%'"
|
bind-key R command-prompt -I "#W" "rename-session '%%'"
|
||||||
|
|
||||||
# Move to the next and prev session
|
|
||||||
bind j switch-client -n
|
|
||||||
bind k switch-client -p
|
|
||||||
|
|
||||||
# Close a window
|
# Close a window
|
||||||
bind-key Q kill-window
|
bind-key Q kill-window
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ set -g @plugin 'catppuccin/tmux#v0.3.0'
|
||||||
set -g @plugin 'omerxx/tmux-sessionx'
|
set -g @plugin 'omerxx/tmux-sessionx'
|
||||||
set -g @plugin 'wfxr/tmux-fzf-url'
|
set -g @plugin 'wfxr/tmux-fzf-url'
|
||||||
set -g @plugin 'omerxx/tmux-floax'
|
set -g @plugin 'omerxx/tmux-floax'
|
||||||
set -g @plugin 'mrjones2014/smart-splits.nvim'
|
|
||||||
|
|
||||||
# Plugin Options
|
# Plugin Options
|
||||||
# Catppuccin
|
# Catppuccin
|
||||||
|
@ -53,9 +52,3 @@ set -g @fzf-url-bind 'u'
|
||||||
set -g @floax-bind '-n M-p'
|
set -g @floax-bind '-n M-p'
|
||||||
set -g @floax-border-color 'white'
|
set -g @floax-border-color 'white'
|
||||||
set -g @floax-text-color 'white'
|
set -g @floax-text-color 'white'
|
||||||
|
|
||||||
# smart-splits
|
|
||||||
set -g @smart-splits_resize_left_key 'C-left'
|
|
||||||
set -g @smart-splits_resize_down_key 'C-down'
|
|
||||||
set -g @smart-splits_resize_up_key 'C-up'
|
|
||||||
set -g @smart-splits_resize_right_key 'C-right'
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue