Emacs copy matching lines

后端 未结 5 1866
北恋
北恋 2020-12-13 16:13

In Emacs how can I easily copy all lines matching a particular regex? Preferably highlighting the matching lines as I type.

occur gets partway there by

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 16:41

    You can install package all. Then M-x all lets you edit all the lines in the buffer matching a regexp. Instead of editing, you can just copy them too.

提交回复
热议问题