Junegunn Choi
|
e8405f40fe
|
Refactor the code so that fzf can be used as a library (#3769)
|
2024-05-07 01:06:42 +09:00 |
|
Junegunn Choi
|
608232568b
|
Add 'change-multi' action
Close #3754
|
2024-04-27 17:38:06 +09:00 |
|
Junegunn Choi
|
8a74976c1f
|
Add track-current, untrack-current, and toggle-track-current (#3699)
Close #3691
|
2024-03-28 20:42:01 +09:00 |
|
Junegunn Choi
|
d210660ce8
|
Add actions: show-header and hide-header
|
2023-12-31 16:01:00 +09:00 |
|
Junegunn Choi
|
1707b8cdba
|
Add 'transform' action to conditionally perform a series of actions
'transform' action runs an external command that prints a series of
actions to perform.
# Disallow selecting an empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"'
# Move cursor past the empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"' \
--bind 'focus:transform:[[ -n {} ]] && exit; [[ {fzf:action} =~ up$ ]] && echo up || echo down'
Close #3368
Close #2980
|
2023-12-26 00:14:05 +09:00 |
|