Having trouble understanding how I can do multiple expressions to search in the gui #3293
Unanswered
sheldonhull
asked this question in
Q&A
Replies: 2 comments
-
try |
Beta Was this translation helpful? Give feedback.
0 replies
-
hull() {
INITIAL_QUERY="${*:-}"
INPUT_LIST=$'echo \'["foo", "bar", "foobar", "taco", "burrito"]\' | jq -r \'.[]\' | grep -E '
FZF_DEFAULT_COMMAND="$INPUT_LIST $(printf %q "$INITIAL_QUERY")" \
fzf --multi --query "$INITIAL_QUERY" --disabled \
--bind "change:first+reload-sync:$INPUT_LIST {q} || true" | jq -nR '[inputs | select(length>0)]'
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried various examples from other discussions and help, but can't figure out why the filtering won't let me do a combination of search terms.
For example, I'd want to do
foo|burrito
,foo OR burrito
,(foo)|(burrito)
,(.*foo$)|(^burrito$)
or something like that. I can't get anything to work other than a simple single search term.The goal I had was to pipe input in from json, use fzf for a multiselection with tab, and then pipe to the next step. Not sure what I'm doing wrong, or if fzf is the wrong tool for this type of usage?
Beta Was this translation helpful? Give feedback.
All reactions