lizmat / App-Rak

21st century grep / find / ack / ag / rg on steroids
Artistic License 2.0
153 stars 7 forks source link

Add --per-paragraph #55

Closed lizmat closed 2 months ago

lizmat commented 2 months ago

This would be basically a shortcut to --per-line=.split("\n\n"), but then reporting the original line number of the paragraph start, rather then the ordinal number of the paragraph.

Reason: for regexes that could potentially span multiple lines, but not span across paragraphs. And having the line number would allow it to work with --edit-files

lizmat commented 2 months ago

Implemented with 0.3.6