-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Is your feature request related to a problem? Please describe.
I'm new to Telescope. I want to search for a specific string (foo) within a specific folder (my-specific-folder-name-cool-awesome). I can do this on the command line using rg foo ./myTabEnter. However, if I invoke Telescope live grep and type in "foo" ./my, there's nothing I can do except keep on typing -specific-folder-name-cool-awesome before any of the results show up.
Describe the solution you'd like
I would like to be able to search for a given string within a given folder and not have to type in the full folder name.
This could be achieved in one of 2 ways:
- (more desirable) Fuzzification of the directory argument such that when I type
"foo" ./mthe results are already starting to show up for any "foo" matches in any folders that start withm; when I typey-speit will refine the results, etc. - (less desirable) Some kind of autocomplete so that I can use the method described above with the Tab key.
When using something that is ostensibly a fuzzy searcher, it's a bit weird to type something, see a bunch of results, keep typing, see ZERO results, then keep typing and suddenly see more results. I would expect the results list to only shrink as I type more, never grow. But here I can type "foo" ./my-specific-folder-name-cool-awesom and have no results, then just add the e and suddenly more results appear.
Describe alternatives you've considered
For now I have been just typing out the full folder name and it works fine, but it's harder to use.
Additional context
Before recently, I used to have a bashrc line like alias search='grep -irn --exclude-dir=node_modules/ --exclude-dir=.git/ --exclude=Session.vim ........' and I would Ctrlz out of vim, use search ..., look at the results, then fg back into vim and open up files. Telescope seems waaaay better than that, but I'd like to be able to replicate that same functionality within vim.