Skip to content

How to accept the currently hovered option, when --multi is specified? #4473

Answered by fsc0
iamFIREcracker asked this question in Q&A
Discussion options

You must be logged in to vote
  • Pressing tab would select and advance the cursor

Let's say above one is action 1 and below one is action 2.

  • Pressing enter would add the current line to the selection and quit

Since you mentioned #4358, I assume action 2 is related with action 1.

seq 5 | fzf --multi --bind "enter:transform:(( FZF_SELECT_COUNT )) && echo select+accept || echo ignore"

If action 2 isn't related with action 1.

seq 5 | fzf --multi --bind "enter:select+accept"

Replies: 1 comment 1 reply

Comment options

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

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