-
Suppose I want to search for the string "Hidden" but only within a sub-folder called 'MySubFolder', what syntax can I use to achieve that in the input box? |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Oct 24, 2024
Replies: 2 comments 11 replies
-
:FzfLua grep search=hidden cwd=MySubFolder |
Beta Was this translation helpful? Give feedback.
0 replies
-
Unless you mean live_grep_glob, you’d need to look at the glob spec of ripgrep, should be something like |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You either have to use
live_grep_glob
or setgrep = { rg_glob = true }
in your setup call to enable globs for all grep/live_grep pickers.As you can see from the generated command everything you type is searched for as a regex, this obviously leads to no results, what you’re writing in the shell is telling rg to search only the sub folder which is equivalent to: