zeux / qgrep

Fast regular expression grep for source code with incremental index updates
MIT License
335 stars 43 forks source link

Add an 'interactive' command that combines watch with search/files #20

Closed vegorov-rbx closed 2 years ago

vegorov-rbx commented 2 years ago

Quite often I find myself refactoring the code and it doesn't feel great to run update command before each search. While 'watch' command is available, it has to be setup in a separate console.

This PR introduces an 'ggrep interactive project' command that combines watch command with search (and files). Now when you have a long session with different searches and code updates, you just launch the interactive mode and use 'search term' or 'files term'.

Drawbacks: additional search flags are not supported.