abo-abo / swiper

Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
https://oremacs.com/swiper/
2.32k stars 338 forks source link

Preview file in counsel git grep #2586

Open LoydAndrew opened 4 years ago

LoydAndrew commented 4 years ago

Is there a way to immediately kill buffer when previewing files with C-M-n (ivy-next-line-and-call) or C-M--p was pressed, so it will really only preview file and not produce a lot of buffers? I guess there was a related request https://github.com/abo-abo/swiper/pull/1895

abo-abo commented 4 years ago

Thanks. It may be a good improvement, but we need to take care to extend this in a way that other functions like counsel-rg can also use it without code duplication.