chore(memory): LRN-017 tmux conf keys/list-keys/hooks/headless tests + journal — feat tmux-copy-exit-keys

This commit is contained in:
bchanot committed 2026-10-09 13:18:34 +02:00
1 parent ead6f96eb0
commit d5a500bb46
2 files changed
+14

No files matched your search

+3
View File
@@ -132,3 +132,6 @@ Done: `tmux.conf` J/L join-pane, S swap-pane, ( ) repeatable swap-pane -U/-D (AZ
## 2026-10-09 (3) — tmux status tabs centred + widened
Done: `status-justify absolute-centre`, separator ' ', window-status formats ` #I #W ` (current bold on light pill). Applied live via `tmux set`, deployed copy to ~/.config/tmux/tmux.conf (install.sh cp semantics). User picked "pastilles larges" over 2-line bar. feature/tmux-status-tabs finished into develop on user signal; manual push, user pushes.
## 2026-10-09 (4) — tmux: any bare key leaves copy-mode after a mouse selection
Done: `bin/tmux-copy-exit-keys` (wraps 120 copy-mode-vi keys behind `@mouse_sel`, idempotent, bash 3.2), tmux.conf marker on MouseDragEnd1Pane + pane-mode-changed hook + run-shell after tpm, install.sh chmod, README/CLAUDE.md/CHANGELOG. Chosen: mouse-only scope, key swallowed. 6 headless tests pass, full conf reload OK. LRN-017. Session 12 window 0 (zsh) vanished during the run, not targeted by any command, flagged to user. Merged on signal; manual push.
+11
View File
@@ -124,3 +124,14 @@ by plan-challenger reading `git log -L` on the call site. Apply: pass resolved v
render boundary; oracle greps the call site (Case H) and asserts `! grep '@(USER|EMAIL|AUTOPUSH)@'` on output;
reject placeholder-shaped values like empty ones. Bonus: `shopt -u patsub_replacement` before `${v//p/$r}` on
bash ≥ 5.2 (`&` expands to match).
## LRN-017 — tmux: conf key names, list-keys, hooks, headless key tests
2026-10-09. Found while building `bin/tmux-copy-exit-keys` (tmux 3.7c). (1) Key `~` in a sourced conf must be
`\~`: parser tilde-expands bare `~` → key `/Users/x`, "unknown key". Same escape set as list-keys prints:
`; { } # $ % " ' \ ~`. (2) `list-keys -T <table> <key>` does not filter in 3.7 (prints nothing, or whole table
when key is `;`): dump the table once, grep/awk the key token. (3) Hooks (`pane-mode-changed`) run with the
triggering pane as target: `set -pu @opt` needs no `-t`; `#{hook_pane}` quoting inside nested strings broke.
(4) `send-keys <key>` to a pane in copy-mode dispatches through the mode key table → key-binding behaviour is
testable headless on a scratch pane (`new-window -d -P -F '#{pane_id}'`, assert `#{pane_in_mode}`); address
by pane id, window-name plugin renames `-n` names. (5) `\;` inside tmux.conf '...' stays literal, then splits
a bind's command list when the string is parsed by if-shell: works, no need to convert to `{ }` blocks.