set -g mouse on set -g status-right '#{pane_id} | %H:%M ' set-option -g alternate-screen off set-window-option -g mode-keys vi # Pane splitting (keep current path) bind-key / split-window -h -c "#{pane_current_path}" bind-key - split-window -v -c "#{pane_current_path}" # Window management bind-key -n M-n new-window -c "#{pane_current_path}" bind-key -n M-1 select-window -t 1 bind-key -n M-2 select-window -t 2 bind-key -n M-3 select-window -t 3 bind-key -n M-4 select-window -t 4 bind-key -n M-5 select-window -t 5 # Pane navigation (vim-style) bind-key -n M-h select-pane -L bind-key -n M-j select-pane -D bind-key -n M-k select-pane -U bind-key -n M-l select-pane -R # Pane resizing bind-key -n M-H resize-pane -L 5 bind-key -n M-J resize-pane -D 5 bind-key -n M-K resize-pane -U 5 bind-key -n M-L resize-pane -R 5 # Session management bind-key -n M-s choose-session bind-key -n M-d detach-client # Copy mode and search bind-key / copy-mode\; send-key ? bind-key -T copy-mode-vi y \ send-key -X start-of-line\; \ send-key -X begin-selection\; \ send-key -X end-of-line\; \ send-key -X cursor-left\; \ send-key -X copy-selection-and-cancel\; \ paste-buffer # Clear history bind-key -n C-l send-keys C-l \; send-keys -R \; clear-history # Extract code block with prompt bind e command-prompt -p "Code block ID:" -I "0" ' run-shell " blk=$(ssage_extract %%) tmux send-keys \"$blk\" " '