Post History
Possibly -f "$dir" not -q "$dir". According to man: -q, --query=STR Start the finder with the given query ... -f, --filter=STR Filter mode. Do not start interactive finder. When used with -...
Answer
#2: Post edited
- Possibly `-f "$dir"` not `-q "$dir"`. According to *man*:
> -q, --query=STR- > Start the finder with the given query
- >
> -f, --filter=STR- > Filter mode. Do not start interactive finder. When used with *--no-sort*,
- > fzf becomes a fuzzy-version of grep.
- If `--select-1` doesn't then do what you expect (i.e. emit the first result), replace with `| head -n1` (i.e. pipe the output of `fzf` to `head` to select the first result).
- Possibly `-f "$dir"` not `-q "$dir"`. According to *man*:
- > __-q, --query=STR__
- >
- > Start the finder with the given query
- >
- > ...
- >
- > __-f, --filter=STR__
- >
- > Filter mode. Do not start interactive finder. When used with *--no-sort*,
- > fzf becomes a fuzzy-version of grep.
- If `--select-1` doesn't then do what you expect (i.e. emit the first result), replace with `| head -n1` (i.e. pipe the output of `fzf` to `head` to select the first result).
#1: Initial revision
Possibly `-f "$dir"` not `-q "$dir"`. According to *man*: > -q, --query=STR > Start the finder with the given query > > -f, --filter=STR > Filter mode. Do not start interactive finder. When used with *--no-sort*, > fzf becomes a fuzzy-version of grep. If `--select-1` doesn't then do what you expect (i.e. emit the first result), replace with `| head -n1` (i.e. pipe the output of `fzf` to `head` to select the first result).