Don't add the currently hovered option on accept
#4358
-
I have a simple I want to prevent this. The I can't find any bindings or flags to change this behavior. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
#!/usr/bin/env bash
seq 5 | fzf \
--multi \
--bind 'enter:transform:
if (( FZF_SELECT_COUNT > 0 )); then
echo -n "accept"
else
echo -n "ignore"
fi' You didn't mention what |
Beta Was this translation helpful? Give feedback.
You didn't mention what
enter
key do when there's no selection,so I used action
ignore
on the above example script.Change the action
ignore
whatever you want.