Closed karthink closed 4 years ago
I jumped the gun here. The fzf maintainer explains how to (not) do this:
https://github.com/junegunn/fzf/issues/416
I got the desired behavior in my examples above by combining the --expect
option and some bash scripting.
Is there a way to change the list of candidates that fzf is working with from within the selection window itself?
Here is an example of what I mean:
Alt-c
and start searching through directories.$dirprev
in fish), or a list obtained by startingfind
from a different root folder.--bind=alt-r:execute(some-other-fzf-command)
and start there instead.Another example:
Ctrl-t
command finds files usingfd
, starting at the home directory.locate
by hittingalt-l
.But calling fzf (with a different source list) from within fzf doesn't seem to work. I realize that calling
execute(..)
may be the wrong way to go about it. So is there some recipe to switch sources on the fly without having to leave fzf and invoke a separate command from the shell?