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
.
M-x grep
with-Po
? (e.g.,grep -Po -nH -e search-string *.el
) That works for me. Buffer*grep*
is pretty much occur-like, no?*grep*
buffer being associated with a file, rather than searching non-file buffers.