telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

Toggling no_ignore while in prompt

Open naquad opened this issue 2 years ago • 3 comments

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.

naquad avatar Apr 16 '23 12:04 naquad

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.

hinell avatar Apr 21 '23 15:04 hinell

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.

nogweii avatar Feb 26 '24 02:02 nogweii

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.

jamestrew avatar Feb 26 '24 03:02 jamestrew