FWIW you can do ad-hoc folding without any plugins by selecting all the text of interest (e.g., via Find All), and then using the Edit/Code Folding menu. In S1 there was an invert_selection command, which would enable selecting all the non-matching bits of text, I'll have to add it back in for S3.

Not sure what you mean. It matches all lines based on one pattern (string, actually; I failed to rewrite this as a regex).

jps wrote:FWIW you can do ad-hoc folding without any plugins by selecting all the text of interest (e.g., via Find All), and then using the Edit/Code Folding menu. In S1 there was an invert_selection command, which would enable selecting all the non-matching bits of text, I'll have to add it back in for S3.

What I would like to do is to automate precisely this. I think the ideal command would be folding (as well as inverted folding) based on a regex. This is very useful for logfiles, todo lists and other files where lines are standalone. (Some kind of hook between Goto Symbol and this command would also be useful....)