I search the line containing rowid in the buffer, and want to copy all the lines in the result window. How to do that?

enter image description here


From the swiper search, type C-c C-o

That will open a separate buffer with the search results. From there you can copy whatever you like just like you can from any other buffer.

  • That's very useful, one issue is that in the buffer, it has a begin as the filename in each line. e.g filename:line: myline. But I don't need the repeated filename – Daniel Wu Oct 26 '20 at 6:46
  • I suggest opening a new Emacs Stack Exchange question asking about that. – izkon Oct 29 '20 at 20:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.