:Telescope live_grep is supposed to do that:
- Live search on files
- Filtering out the
.gitignore
For searching for file contentThe telescope-live-grep-args provides:
- Live search on files (bringing result while searching)
- Restricting on somePassing arguments to the underlying
rgand in particular the-gand-g!argument that allow filtering against file typepatterns.
For searching for file content I recommend usingpersonally use the plugin CtrlSF plugin that provides:
- Live search on files (bringing result while searching)
- Restricting on some file type
e.g.:
:CtrlSF -T py foo Search for foo in all the Python files.