-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Enable to use builtin walker in reload function or create new reload-walker function #4062
Comments
I've given some thought about that, but it's not clear how we can support three walker options in a single "reload-walker" action. A workaround currently available is to start fzf with fzf --bind 'ctrl-d:reload:</dev/tty fzf --filter "" --walker dir' \
--bind 'ctrl-f:reload:</dev/tty fzf --filter "" --walker file' ( |
Will try the workaround thanks! |
Admittedly, # Start the built-in walker and print the list
fzf --walk Or for better flexibility, we could just add # Start built-in walker and print the list
fzf --walker-force --filter ''
# You can use --walker-force to use built-in walker even when
# * $FZF_DEFAULT_COMMAND is set
# * Standard input is not a tty device
export FZF_DEFAULT_COMMAND=ls
whoami | fzf --walker-force These are just some initial ideas. I'm not going to rush into a decision. |
I found this by searching how to reload using the builtin walker. The option I wonder if this could be achieve with a simple walker action in the format E.g. fzf --walker=file --bind 'ctrl-a:reload-walker(dir)' |
I am using ctrt+t shell integration and in FZF_CTRL_T_OPTS I have set up reload function to switch between Directories and Files. Right now, I have to use custom command (e.g. fd) to list directories/files in reload functions, but I would prefer to use built-in walker as it is much faster! It would be great if I could use built-in walker with arguments --walker or --walker-skip in reload() function, or bind new function e.g. reload-walker().
The text was updated successfully, but these errors were encountered: