In addition to passing ripgrep options through FZF_DEFAULT_COMMAND, you can as well set the environment variable RIPGREP_CONFIG_PATH to a config file listing the options to apply to ripgrep by default. Over there I set:
--no-ignore-vcs
--hidden
What's even more convenient, though, is to have an ~/.ignore file where you can list directories and files ripgrep should still ignore (but doesn't since we use --no-ignore-vcs):
.git/
node_modules/
This avoids having to define an additional :All vim command and mapping.
What's even more convenient, though, is to have an ~/.ignore file where you can list directories and files ripgrep should still ignore (but doesn't since we use --no-ignore-vcs):
I tried with ~/.ignore file but it doesn't work unless created in the working directory, that's why I chose to do it this way.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article!
In addition to passing ripgrep options through
FZF_DEFAULT_COMMAND
, you can as well set the environment variableRIPGREP_CONFIG_PATH
to a config file listing the options to apply to ripgrep by default. Over there I set:What's even more convenient, though, is to have an
~/.ignore
file where you can list directories and files ripgrep should still ignore (but doesn't since we use--no-ignore-vcs
):This avoids having to define an additional
:All
vim command and mapping.Dietrich
Thank you!
I tried with
~/.ignore
file but it doesn't work unless created in the working directory, that's why I chose to do it this way.