Skip to content

Multiselect all #3543

Answered by LangLangBart
huyz asked this question in Q&A
Dec 17, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

With multiselect, I'd like to offer the option of selecting all or none. How can I configure fzf to provide these bindings?

The action toggle-all accomplishes this. You can activate it by pressing ⇥ Tab with the following command.

seq 12 | fzf --bind 'tab:toggle-all'

It used to be that hitting ENTER would select none.

If you don't want the ⏎ Enter key to print the selection and simply leave fzf, you can use abort or become: 1. See man fzf for details.

# exit status 130
fzf --bind 'enter:abort'
echo $?
# 130

# exit status 0
fzf --bind 'enter:become:'
echo $?
# 0

Footnotes

  1. release 38

Replies: 1 comment 1 reply

Comment options

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

Answer selected by huyz
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