chore: clean up dotfiles and add gitignore whitelist
Switch to whitelist-based .gitignore to only track essential configs: nvim, yazi, kitty, zsh, ideavim, karabiner, tmux, scripts, starship. Remove history, compiled files, and plugin dirs from tracking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -37,8 +37,9 @@ set -g renumber-windows on
|
||||
# Increase scrollback buffer size
|
||||
set -g history-limit 10000
|
||||
|
||||
# Enable automatic renaming for nerd font icons
|
||||
set-option -g allow-rename on
|
||||
# Let tmux auto-name unnamed windows, but keep manual names sticky.
|
||||
# `allow-rename` lets shells/apps overwrite names via terminal title escapes.
|
||||
set-option -g allow-rename off
|
||||
set-option -g automatic-rename on
|
||||
|
||||
# Reduce escape time for neovim
|
||||
@@ -134,6 +135,7 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||
set -g @plugin 'sainnhe/tmux-fzf'
|
||||
set -g @plugin 'laktak/extrakto'
|
||||
set -g @plugin 'wfxr/tmux-fzf-url'
|
||||
@@ -190,6 +192,9 @@ source-file ~/.config/tmux/themes/tmuxline.tmux
|
||||
# KEYBINDINGS
|
||||
# ============================================
|
||||
|
||||
# Clear stale bindings removed from older config revisions
|
||||
unbind /
|
||||
|
||||
# Three-way toggle: top → bottom → hidden → top
|
||||
bind b if -F "#{==:#{status},off}" \
|
||||
"set -g status on ; set -g status-position top ; set -g pane-border-status top" \
|
||||
@@ -200,5 +205,8 @@ bind b if -F "#{==:#{status},off}" \
|
||||
# Reload config
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message " Config reloaded!"
|
||||
|
||||
# SessionX in window mode on demand
|
||||
bind O run-shell 'old_mode="$(tmux show-option -gqv @sessionx-window-mode)"; tmux set-option -g @sessionx-window-mode on; ~/.config/tmux/plugins/tmux-sessionx/sessionx.tmux >/dev/null 2>&1; ~/.config/tmux/plugins/tmux-sessionx/scripts/sessionx.sh; if [ -n "$old_mode" ]; then tmux set-option -g @sessionx-window-mode "$old_mode"; else tmux set-option -gu @sessionx-window-mode; fi; ~/.config/tmux/plugins/tmux-sessionx/sessionx.tmux >/dev/null 2>&1'
|
||||
|
||||
# Initialize TMUX plugin manager (keep this line at the very bottom)
|
||||
run '~/.config/tmux/plugins/tpm/tpm'
|
||||
|
||||
Reference in New Issue
Block a user