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
..
2023-06-17 19:10:12 +09:00
2023-11-21 16:03:12 +09:00
2023-11-12 22:08:08 +09:00
2023-09-01 20:30:44 +09:00
2023-12-26 00:14:05 +09:00
2023-12-25 17:05:54 +09:00
2023-12-25 17:05:54 +09:00
2021-02-28 18:28:21 +09:00
2017-07-18 03:14:33 +09:00
2017-08-16 12:26:06 +09:00
2019-11-10 11:43:37 +09:00
2023-09-24 13:23:40 +09:00
2023-12-21 18:42:23 +09:00
2023-07-16 17:14:22 +09:00
2023-07-16 17:14:22 +09:00
2016-08-19 02:39:32 +09:00
2017-08-15 01:10:41 +09:00
2023-01-17 01:33:05 +09:00
2023-05-27 15:51:04 +09:00
2023-05-27 16:01:30 +09:00
2023-05-27 15:51:04 +09:00
2023-07-16 17:14:22 +09:00
2023-12-26 00:14:05 +09:00
2022-08-03 22:18:26 +09:00
2022-08-03 22:18:26 +09:00
2021-09-24 09:45:06 +09:00
2023-07-12 13:55:59 +09:00
2022-03-29 21:23:45 +09:00
2022-08-02 21:48:19 +09:00
2022-03-29 21:23:45 +09:00
2022-11-18 20:16:43 +09:00
2023-12-16 15:15:00 +09:00
2023-12-26 00:14:05 +09:00
2023-12-25 17:35:44 +09:00
2022-03-29 21:23:45 +09:00
2023-12-26 00:14:05 +09:00
2019-07-19 13:23:18 +09:00
2022-07-21 21:21:06 +09:00