Serve a script's picker for tmux's display-picker (pick) #229

Merged
merge-queue merged 2 commits from serve-picker into main 2026-12-01 02:05:00 -08:00
Owner

Lets a script's picker run in the fzt-automate that tmux keeps running, as the at menu now does. Scripts can then stop starting fzt.exe.

Added

  • --serve accepts pick followed by fzt's flags. It runs fzt-terminal's picker.Main (released in v0.1.233, taken here) on the session's screen, with the rows from the open frame and the pick and exit code going back in the exit frame, the same codes fzt.exe used (0, 1, 2, 130).
  • The open frame may carry the caller's folder after the rows. tmux's new display-picker sends it, so a row's relative path, such as a Tab completion's folder, gets its folder icon. A frame without it, from the current tmux, still parses.

Changed: a request that is neither --popup nor pick is refused with a message naming both.

Tests: TestServedPicker runs --serve as a process. A picker's rows go in with a folder; a row typed and picked comes back as beta, exit 0; Escape exits 130 with nothing printed. TestOpenFrameFolder covers a frame with and without the folder.

Work package: https://openproject.home.romaine.life/wp/FZTA-25

🤖 Generated with Claude Code

Lets a script's picker run in the fzt-automate that tmux keeps running, as the at menu now does. Scripts can then stop starting fzt.exe. **Added** - `--serve` accepts `pick` followed by fzt's flags. It runs fzt-terminal's `picker.Main` (released in v0.1.233, taken here) on the session's screen, with the rows from the open frame and the pick and exit code going back in the exit frame, the same codes fzt.exe used (0, 1, 2, 130). - The open frame may carry the caller's folder after the rows. tmux's new `display-picker` sends it, so a row's relative path, such as a Tab completion's folder, gets its folder icon. A frame without it, from the current tmux, still parses. **Changed:** a request that is neither `--popup` nor `pick` is refused with a message naming both. Tests: `TestServedPicker` runs `--serve` as a process. A picker's rows go in with a folder; a row typed and picked comes back as `beta`, exit 0; Escape exits 130 with nothing printed. `TestOpenFrameFolder` covers a frame with and without the folder. Work package: https://openproject.home.romaine.life/wp/FZTA-25 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tmux's display-picker asks fzt-automate --serve for pick sessions, which
run fzt-terminal's picker on a screen tmux draws; the open frame carries
the caller's folder after the rows, for relative paths (FZTA-25).
Take fzt-terminal v0.1.233 (its picker package) and describe pick
All checks were successful
Suite default / scope (pull_request) Successful in 25s
Suite go / scope (pull_request) Successful in 25s
Suite go / check-services (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 33s
Suite release / finalize (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Successful in 1m20s
Suite default / check-logs (pull_request) Successful in 36s
Suite go / check-format (pull_request) Successful in 44s
Suite default / check-rules (pull_request) Successful in 32s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 1m27s
Suite release / check-package (pull_request) Successful in 28s
Suite go / check-test-windows (pull_request) Successful in 2m13s
Suite default / reused-checks (pull_request) Successful in 27s
Suite release / reused-checks (pull_request) Successful in 19s
Suite go / reused-checks (pull_request) Successful in 26s
merge-queue landed on main
f813732158
merge-queue deleted branch serve-picker 2026-12-01 02:05:00 -08:00
Sign in to join this conversation.
No description provided.