fix tmux keybindings and colors
This commit is contained in:
+29
-8
@@ -92,8 +92,8 @@ bind -n M-Down select-pane -D
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Right select-pane -R
|
||||
|
||||
# Resize panes - Ctrl+R then arrows (no prefix needed)
|
||||
bind -n C-r switch-client -T resize-pane
|
||||
# Resize panes - Ctrl+S then r, then arrows
|
||||
bind r switch-client -T resize-pane
|
||||
bind -T resize-pane Left resize-pane -L 5 \; switch-client -T resize-pane
|
||||
bind -T resize-pane Right resize-pane -R 5 \; switch-client -T resize-pane
|
||||
bind -T resize-pane Up resize-pane -U 5 \; switch-client -T resize-pane
|
||||
@@ -115,8 +115,8 @@ bind j command-prompt -p "join pane from window #:" "join-pane -s '%%'"
|
||||
bind > swap-pane -D
|
||||
bind < swap-pane -U
|
||||
|
||||
# Move panes around - Ctrl+E then arrows (no prefix needed, stays in mode)
|
||||
bind -n C-e switch-client -T move-pane
|
||||
# Move panes around - Ctrl+s m then arrows
|
||||
bind m switch-client -T move-pane
|
||||
bind -T move-pane Left swap-pane -s '{left-of}' \; switch-client -T move-pane
|
||||
bind -T move-pane Right swap-pane -s '{right-of}' \; switch-client -T move-pane
|
||||
bind -T move-pane Up swap-pane -s '{up-of}' \; switch-client -T move-pane
|
||||
@@ -125,8 +125,8 @@ bind -T move-pane Escape switch-client -T root
|
||||
bind -T move-pane Enter switch-client -T root
|
||||
|
||||
# Mark pane + swap with marked pane (advanced)
|
||||
bind m select-pane -m # Mark current pane
|
||||
bind M swap-pane # Swap with marked pane
|
||||
bind M select-pane -m # Mark current pane (capital M)
|
||||
bind * swap-pane # Swap with marked pane
|
||||
|
||||
# Move pane to another window by number
|
||||
bind @ command-prompt -p "send pane to window #:" "join-pane -t ':%%'"
|
||||
@@ -227,8 +227,8 @@ set -g status-right-length 150
|
||||
# Other Useful Bindings
|
||||
# -----------------------------------------
|
||||
|
||||
# Prefix + r to reload config
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"
|
||||
# Prefix + . to reload config
|
||||
bind . source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"
|
||||
|
||||
# Prefix + x to kill current pane (with confirmation)
|
||||
bind x confirm-before -p "kill-pane #P? (y/n)" kill-pane
|
||||
@@ -242,6 +242,27 @@ bind S set synchronize-panes
|
||||
# Zoom current pane (toggle full-screen for pane)
|
||||
bind z resize-pane -Z
|
||||
|
||||
# -----------------------------------------
|
||||
# Plugins (local dotfiles)
|
||||
# -----------------------------------------
|
||||
|
||||
# Set plugin path to dotfiles location
|
||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins/'
|
||||
|
||||
# Resurrect settings
|
||||
set -g @resurrect-save 'S'
|
||||
set -g @resurrect-restore 'L'
|
||||
set -g @resurrect-capture-pane-contents 'on'
|
||||
set -g @resurrect-strategy-nvim 'session'
|
||||
|
||||
# Continuum settings - auto-save every 15 minutes
|
||||
set -g @continuum-save-interval '15'
|
||||
set -g @continuum-restore 'on'
|
||||
|
||||
# Load plugins directly (bypass TPM)
|
||||
run '~/.config/tmux/plugins/tmux-resurrect/resurrect.tmux'
|
||||
run '~/.config/tmux/plugins/tmux-continuum/continuum.tmux'
|
||||
|
||||
# -----------------------------------------
|
||||
# Notification Settings
|
||||
# -----------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user