Skip to main content
2 of 2
Commonmark migration

Can occur display just the matched part?

Or is there an alternative tool (perhaps some option to isearch?) that would show just the matches in a separate buffer linked to the original buffer?

Use-case

I have a log file with very long lines. When the matching line appears in *occur* buffer, it is still too cluttered to be useful (due to wrapping and a lot of extra info).

It isn't difficult to write something like this, but it seems so basic that it must've been done before.

If my explanation wasn't good enough, think about grep -Po search-string.

wvxvw
  • 11.5k
  • 3
  • 32
  • 57