[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Select/highlight and *copy* matches of some regex
From: |
Joost |
Subject: |
Select/highlight and *copy* matches of some regex |
Date: |
Mon, 27 Jun 2022 17:52:48 +0200 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 |
Hi all,
I've been looking for at least an hour for something that my Sublime-using
colleagues seem to be able to do out of the box... Highlight all matches of
some regex in the current buffer and then copy/kill *all* of those matches so
that you can yank them in a new buffer.
The first part, highlighting all matches, is not a problem. But I haven't found
a way yet to then extract all matches.
I've also looked for third-party packages, but haven't been able to find
anything. I read a few times that `multiple-cursors` can kill all matches as a
rectangle, so that you can use `yank-rectangle`, but I haven't been able to
make that work.
So what am I overlooking here? I mean, there *must* be a way, right?
TIA,
Joost
--
Joost Kremers
Life has its moments
- Select/highlight and *copy* matches of some regex,
Joost <=
- Re: Select/highlight and *copy* matches of some regex, tomas, 2022/06/27
- Re: Select/highlight and *copy* matches of some regex, Joost, 2022/06/27
- Re: Select/highlight and *copy* matches of some regex, Visuwesh, 2022/06/28
- Re: Select/highlight and *copy* matches of some regex, Emanuel Berg, 2022/06/28
- Re: Select/highlight and *copy* matches of some regex, Joost Kremers, 2022/06/29
- Re: Select/highlight and *copy* matches of some regex, Emanuel Berg, 2022/06/30
Re: Select/highlight and *copy* matches of some regex, Stephen Berman, 2022/06/27