feat: persistent help tab with keybindings cheat sheet
- Colorized reference card auto-redraws on resize - Ctrl-A ? jumps to help tab (recreates if closed) - Fixed tmux config syntax error in capture/logging bindings
This commit is contained in:
+7
-3
@@ -113,8 +113,8 @@ bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
||||
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel
|
||||
|
||||
# --- Capture & logging ---
|
||||
bind S capture-pane -pS - \; save-buffer ~/logs/capture-#{session_name}-#{window_index}-#{pane_index}-#(date +%s).txt \; display "Pane captured to ~/logs/"
|
||||
bind L pipe-pane -o "cat >> ~/logs/live-#{session_name}-#{window_index}-#(date +%s).log" \; display "Logging toggled"
|
||||
bind S run-shell 'tmux capture-pane -pS - > ~/logs/capture-#S-#I-#P-$(date +%%s).txt && tmux display "Pane captured to ~/logs/"'
|
||||
bind L pipe-pane -o 'cat >> ~/logs/live-#S-#I.log' \; display "Logging toggled"
|
||||
|
||||
# --- Clipboard ---
|
||||
set -g set-clipboard on
|
||||
@@ -154,5 +154,9 @@ set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
set -sg escape-time 10
|
||||
|
||||
# --- Help tab shortcut ---
|
||||
# Ctrl-A ? = jump to help tab (or recreate if closed)
|
||||
bind ? if-shell 'tmux select-window -t help 2>/dev/null' '' 'new-window -n help /opt/sethmux/sethmux-help.sh'
|
||||
|
||||
# --- Session startup layout ---
|
||||
# Windows created by sethmux-start.sh: code, git, run, logs
|
||||
# Windows created by sethmux-start.sh: code, git, run, logs, help
|
||||
|
||||
Reference in New Issue
Block a user