Any time that vscode requires interaction with the OS file dialog, the workflow can become much less efficient. This comes up when opening files outside of your workspace folders or adding a workspace folder. This extension solves that by providing these actions using fzf.
Provides the commands:
fzf: Open file using fzf
opens a terminal in which you can choose a filefzf: Add workspace folder using fzf
to add a workspace folderfzf: Search using rg and fzf
to search usingfzf
andripgrep
On terminal launch, the pwd
is chosen based on the active editor file. Also adds
fzf: Open file in PWD using fzf
fzf: Add workspace folder from PWD using fzf
fzf: Search in PWD using rg and fzf
which are the same as above but switches to parent directory of active file on every invocation.
Bind the commands to keyboard shortcuts to launch faster.
Change the setting fzf-quick-open.initialWorkingDirectory
to override the initial working directory used for the fzf terminal. Change fzf-quick-open.findDirectoriesCmd
to change the command used to find directories. Something like fd --type d
is very fast if you use fd.
-
For best performance you should set up
fzf
to use the amazingly fast fd~/.config/fish/config.fish
set -x FZF_DEFAULT_COMMAND 'fd'
~/.bashrc
export FZF_DEFAULT_COMMAND='fd'
-
Configure the setting
fzf-quick-open.findDirectoriesCmd
to usefd
:fd --type d