I have a fairly large text file (~1000 lines, Markdown format) that I would like to quickly grep for lines that include or exclude certain words. This is a large file, so I need the feedback of incremental search.
The matching does not depend on the order of the words, so
word1 word2 should match a line containing
I have been using commands like
grep 'word1|word2' file.txt | grep -v word3, but this quickly becomes tiresome since the words tend to be different each time. This is why I want a GUI, not command line input.
The GUI must hide non-matching lines, not jumping to matching ones as in a normal text editor. Somethings like vim's global command is close, but it's too cumbersome for entering long patterns and doesn't have the quick feedback of incremental search.
A desktop file indexer like recoll is also close, but it is designed for multiple files and does not have incremental search.
The GUI should be very fast to change which ones I'm including or excluding. It should also be possible to retain and recall previous patterns.
Finally, the GUI must run on Linux.