nvim-telescope / telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.
MIT License
15.96k stars 838 forks source link

Toggling no_ignore while in prompt #2468

Open naquad opened 1 year ago

naquad commented 1 year ago

Is your feature request related to a problem? Please describe. Scripting languages package managers such as NPM/Yarn, Composer, Bundler, Python's venv, and so forth are installing the dependencies into a folder within the project, this folder is added to the .gitignore file.

Telescope respects the .gitignore unless no_ignore argument is explicitly passed. While it is ok for most of the cases, when one does the code digging of the project + its dependencies, Telescope restart is required (close the Telescope window, invoke again with no_ignore, and type in the same prompt) which is somewhat clumsy.

Describe the solution you'd like A keymap that would dynamically change the no_ignore and refine the results that can be used in the Telescope's prompt.

hinell commented 1 year ago

Yeah, currently it's a bit inconveniet to do that: we have to run a pre-configured command. This isn't good. We have to modify find_files picker.

nogweii commented 8 months ago

As mentioned in https://github.com/nvim-telescope/telescope.nvim/issues/2874 you can write a wrapper function that re-executes the finder when a keybinding is pressed.

Avoiding this by allowing telescope to do this live would be a significant improvement, IMO.

jamestrew commented 8 months ago

I don't see any significant improvements over that snippet. Not sure what allowing telescope to "to this live" means either. Re-executing the finder is pretty much required I believe, considering you're changing the search parameters and changing the results which need filtering.