Pre-selecting specific rows? #2658
Replies: 4 comments 1 reply
-
Safe to assume the answer is no. Please consider this as a FR ! |
Beta Was this translation helpful? Give feedback.
-
This works for selecting the 2nd row on start:
You can probably chain |
Beta Was this translation helpful? Give feedback.
-
Based on the provided examples, it seems that the existing options and search syntax already support basic selections1.
echo -e "apple\nbanana\npeach\npear" |
fzf --multi --query 'apple | peach' --bind 'load:select-all+clear-query'
echo -e "apple\nbanana\npeach\npear" |
fzf --multi --query '^pe' --bind 'load:select-all+clear-query' Footnotes |
Beta Was this translation helpful? Give feedback.
-
This doesn't work if lines can contain similar characters of if the regex is greater than the max allowed characters, like here: An actual solution would be preferable instead of this big hack. |
Beta Was this translation helpful? Give feedback.
-
@junegunn
Is there any way to preselect 1 or more rows when
fzf
is invoked?e.g. in the below, I was hoping to have fzf appear with
apple
andpeach
selected:eg. something like
Would be amazing if it supported regex or glob style matches... e.g. the below would match
peach
andpear
Beta Was this translation helpful? Give feedback.
All reactions