:Telescope live_grep is supposed to do that:
- Live search on files
- Filtering out the
.gitignore
The telescope-live-grep-args provides:
- Live search on files (bringing result while searching)
- Passing arguments to the underlying
rgand in particular the-gand-g!argument that allow filtering against file patterns.
For searching for file content I personally use the 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.