Dynamically respecting .gitignore #3363
Unanswered
miguel9554
asked this question in
Q&A
Replies: 1 comment 1 reply
-
fzf --bind 'ctrl-a:reload:eval $FZF_DEFAULT_COMMAND --no-ignore'
# or
fzf --bind 'ctrl-a:reload:rg --files --no-ignore' man rg
-u, --unrestricted ...
Reduce the level of "smart" searching. A single -u won't respect
.gitignore (etc.) files (--no-ignore). Two -u flags will
additionally search hidden files and directories (-./--hidden).
Three -u flags will additionally search binary files (--binary).
rg -uuu is roughly equivalent to grep -r.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As explained in README, gitignore can be respected by setting as a default command
rg
for example.With
rg
,--no-ignore
allows to ignore.gitignore
. How can I pass this flag torg
fromfzf
, if I've setFZF_DEFAULT_COMMAND='rg --files'
?Beta Was this translation helpful? Give feedback.
All reactions