Use advanced script with altered search command #4506
-
Hi all I would like to use the script linked here https://github.com/junegunn/fzf/blob/master/ADVANCED.md#controlling-ripgrep-search-and-fzf-search-simultaneously but use a different search command. I'd like to use
I tried the following:
Running What am I doing wrong here? Would love to get some pointers. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The |
Beta Was this translation helpful? Give feedback.
-
Perfect! Thank you – this was driving me nuts today |
Beta Was this translation helpful? Give feedback.
The
FZF_DEFAULT_COMMAND
variable sets the default command when input is tty. This script sets ripgrep as the file search command (fzf just filters the returned list). To achieve what you want, change the ripgrep command torg --hidden --follow --no-ignore --column --line-number --no-heading --color=always --smart-case %q $(pwd) || true" "$rg_pat"
.