source ~/.config/tmux/tmux.local.conf set-option -g allow-rename off set-option -g history-limit 100000 set-option -s escape-time 0 set-option -g set-titles on set-window-option -g mode-keys vi bind-key h select-pane -L bind-key j select-pane -D bind-key k select-pane -U bind-key l select-pane -R bind-key H resize-pane -L 5 bind-key J resize-pane -D 5 bind-key K resize-pane -U 5 bind-key L resize-pane -R 5 bind-key g popup -E -w 99% -h 99% -d '#{pane_current_path}' "fish -c 'tmux new-session -A -s (basename (pwd))-tmp-lazygit lazygit'" bind-key f popup -E -w 99% -h 99% -d '#{pane_current_path}' "fish -c 'tmux new-session -A -s (basename (pwd))-tmp-ranger ranger'" bind-key e run-shell -b "cd '#{pane_current_path}' && hexai-tmux-edit --pane '#{pane_id}'" bind-key N popup -E -w 99% -h 99% -d ~/Notes "fish -c 'tmux::attach notes'" bind-key t popup -E -w 99% -h 99% -d '#{pane_current_path}' "fish -c 'tmux::attach (basename (pwd))-tmp-scratch'" bind-key a popup -E -w 99% -h 99% -d '#{pane_current_path}' "fish -c 'tmux::attach adhoc'" bind-key Q popup -E -w 99% -h 99% "fish -c 'tmux new-session -A -s quickedit quickedit'" bind-key V popup -E -w 99% -h 99% "fish -c 'tmux new-session -A -s quickview quickview'" # bind-key b break-pane -d bind-key c new-window -c '#{pane_current_path}' bind-key F new-window -n "session-switcher" "tmux list-sessions | fzf | cut -d: -f1 | xargs tmux switch-client -t" bind-key p setw synchronize-panes off bind-key P setw synchronize-panes on bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded" bind-key T choose-tree set-option -g pane-active-border-style fg=magenta,bold set -g status-right '#{@hexai_status} #[fg=colour8]| %H:%M' set -g status-right-length 120 set-environment -g HEXAI_TMUX_STATUS_THEME white-on-purple # Use csi-u (Kitty) extended key encoding for unambiguous modifier+key combos. # The default xterm format causes ambiguity with Ctrl/Alt/Shift combinations. set -g extended-keys-format csi-u