Skip to content

Delete last word in search query #1323

Answered by ibhagwan
rappie asked this question in Q&A
Discussion options

You must be logged in to vote

Fzf comes with default binds to help with this:

           unix-line-discard            ctrl-u
           unix-word-rubout             ctrl-w

ctrl-w will delete the last word, ctrl-u deletes the entire line, there is also alt-b to go backwards without deleting, etc, see man fzf for the complete list of default binds.

Fzf-lua matches these defaults but you can also modify these if you wish by setting new binds under keymap.fzf.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rappie
Comment options

Answer selected by rappie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants