sublime-filterlines
sublime-filterlines copied to clipboard
How about filter as you type
Right now you have to press enter for it to work. With simple strings it should be straight forward to make the filter results auto update. With regex, maybe it's worth verifying the regex is valid before running it or watching out for performance if it is a big file/slow regex, but in any case it would make the plugin alot more useful I think, because right now if you want to try multiple strings you need to switch back to the original file every time.
I've added an option for in place filtering in PR #45. Not exactly auto update but now you can go back to original document with single undo command.
I use Filter Lines with very large files, so performance would be an issue, and you would have to be able to turn filter-as-you-type on or off easily. I'm planning to simplify this plugin, so adding new interaction may not be the way to go.