Ctrl+U erases the line in every text box #27

Merged
merge-queue merged 1 commit from ctrl-u into main 2026-11-20 19:58:48 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/FT-13

Ctrl+U, the terminal's line-erase, now works wherever fzt takes text. Nelson didn't know it was the universal remove-line key when he started using fzt and wants it in.

  • Tree search: empties the query and leaves you typing, in the folder you're in. An empty query is left alone, so it never backs out of a folder. From normal mode it returns you to typing.
  • Flat list and prompt box (Live.Ask, input entries): deletes the text before the cursor and keeps what's after, as a shell does. A prefilled answer that is still selected goes too.
  • Rename / property edit: empties the buffer, still editing.
  • The / pop-up lists it under "clear search", and its own search erases the same way.

Removed: nothing. Ctrl+C is unchanged. No other Ctrl key is bound. The renderers that turn a key into an engine key (fzt-picker's window, fzt-browser) need their own one-line change to pass Ctrl+U through; tcell (fzt-terminal, fzt-automate, the fzt CLI) already delivers it.

Work package: https://openproject.home.romaine.life/wp/FT-13 Ctrl+U, the terminal's line-erase, now works wherever fzt takes text. Nelson didn't know it was the universal remove-line key when he started using fzt and wants it in. - Tree search: empties the query and leaves you typing, in the folder you're in. An empty query is left alone, so it never backs out of a folder. From normal mode it returns you to typing. - Flat list and prompt box (Live.Ask, input entries): deletes the text before the cursor and keeps what's after, as a shell does. A prefilled answer that is still selected goes too. - Rename / property edit: empties the buffer, still editing. - The / pop-up lists it under "clear search", and its own search erases the same way. Removed: nothing. Ctrl+C is unchanged. No other Ctrl key is bound. The renderers that turn a key into an engine key (fzt-picker's window, fzt-browser) need their own one-line change to pass Ctrl+U through; tcell (fzt-terminal, fzt-automate, the fzt CLI) already delivers it.
Ctrl+U erases the line in every text box (FT-13)
All checks were successful
Suite release / scope (pull_request) Successful in 8s
Suite default / reused-checks (pull_request) Successful in 10s
Suite go / check-format (pull_request) Successful in 12s
Suite go / scope (pull_request) Successful in 9s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / dispatch (pull_request) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / home-sync (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / dispatch (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite go / check-services (pull_request) Has been skipped
merge-queue landed on main
Suite default / scope (pull_request) Successful in 8s
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Successful in 54s
Suite go / reused-checks (pull_request) Successful in 6s
95fc7e6ae2
Ctrl+U deletes the text before the cursor: the tree's search is emptied
(you stay typing, in the folder you're in), the flat list and prompt box
keep what follows their cursor, and a rename's buffer is emptied. The /
pop-up lists it as 'clear search'.
merge-queue deleted branch ctrl-u 2026-11-20 19:58:48 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/fzt!27
No description provided.