this post was submitted on 09 Nov 2023
1 points (100.0% liked)

Emacs

310 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hi Everyone.

I'm using emacs and ripgrep to find what I'm looking for in a folder. Ripgrep shows the result of what I'm looking beautifully. Thats great. Every time I open a result, ripgrep buffer disappears.

Does anyone know how to open a temp buffer to view result then I can close it and go back to rg result again, so I don't have to type my search query.

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] varsderk@alien.top 1 points 1 year ago

I use consult-ripgrep to do the search, which shows me a live preview of the match candidates. If I want to make a buffer with all the results, I call embark-act then embark-export to dump the results into a buffer.

I detail this workflow (including editing the matches!) here on my blog, which should have more details if you're lost.