aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/debug-vm.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-19 13:14:52 -0500
committerCraig Jennings <c@cjennings.net>2026-05-19 13:14:52 -0500
commit95e1e0be4905ff5d37b52f889f5dda65543e2b51 (patch)
treee3a185caad1ecfba557e85c7d2c3eb66344a9f00 /scripts/testing/debug-vm.sh
parent331d9421f1ca56afdaf0d238082f83d82103a795 (diff)
downloadarchsetup-95e1e0be4905ff5d37b52f889f5dda65543e2b51.tar.gz
archsetup-95e1e0be4905ff5d37b52f889f5dda65543e2b51.zip
feat(tmux-util): add pick subcommand (fzf session switcher)
tmux-util pick lists every session ("attached"/"detached" plus name), pipes it through fzf, and attaches or switch-clients to the chosen one (matching the go subcommand's inside-vs-outside-tmux discipline). If the user cancels fzf (Ctrl-C, Esc, empty selection), the pipeline returns empty and pick exits 0 without touching tmux state. The new fake-fzf testing fake is driven by env vars: - FAKE_FZF_CHOICE_LINE=<N>: return the Nth line of stdin as the selection - FAKE_FZF_CHOICE=<string>: return the literal string (ignores stdin) - (neither): exit 130 to simulate cancel 4 new tests cover Normal cases (pick second line, inside/outside tmux behavior) and Boundary cases (no sessions, user cancellation). Total suite: 43 tests, all green.
Diffstat (limited to 'scripts/testing/debug-vm.sh')
0 files changed, 0 insertions, 0 deletions