Serve a script's picker for tmux's display-picker (pick) #229
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-automate!229
Loading…
Reference in a new issue
No description provided.
Delete branch "serve-picker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
--serveacceptspickfollowed by fzt's flags. It runs fzt-terminal'spicker.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).display-pickersends 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
--popupnorpickis refused with a message naming both.Tests:
TestServedPickerruns--serveas a process. A picker's rows go in with a folder; a row typed and picked comes back asbeta, exit 0; Escape exits 130 with nothing printed.TestOpenFrameFoldercovers a frame with and without the folder.Work package: https://openproject.home.romaine.life/wp/FZTA-25
🤖 Generated with Claude Code