diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index 955d576d..84c5ca5c 100644 --- a/.config/tmux/conf/binds.conf +++ b/.config/tmux/conf/binds.conf @@ -26,20 +26,25 @@ bind c new-window -c "#{pane_current_path}" bind-key C command-prompt -p "Enter window name:" "new-window -n '%%'" # 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-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 bind-key r command-prompt -I "#W" "rename-window '%%'" 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 bind-key Q kill-window diff --git a/.config/tmux/conf/plugins.conf b/.config/tmux/conf/plugins.conf index a543a9e2..697d48d2 100644 --- a/.config/tmux/conf/plugins.conf +++ b/.config/tmux/conf/plugins.conf @@ -5,7 +5,6 @@ set -g @plugin 'catppuccin/tmux#v0.3.0' set -g @plugin 'omerxx/tmux-sessionx' set -g @plugin 'wfxr/tmux-fzf-url' set -g @plugin 'omerxx/tmux-floax' -set -g @plugin 'mrjones2014/smart-splits.nvim' # Plugin Options # Catppuccin @@ -53,9 +52,3 @@ set -g @fzf-url-bind 'u' set -g @floax-bind '-n M-p' set -g @floax-border-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'