Kill buffers in consult-buffer
2024-07-08
I recently switched to the great packages vertico and consult after using ivy+swiper for years. The main reason was that I wanted a leaner and faster approach. And consult is getting a lot more attention lately, while ivy seems to be standing still. I didn't integrate embark because I wanted to learn the basics first and see how far I could get there.
While using counsel
to switch buffers, I was accustomed to hitting C-k
inside the
minibuffer completion and killing the current candidate from the completion list.
This was not built into consult-buffer
which is the replacement.
This little snippet provides the ability to kill a buffer in the minibuffer completion.
|
|
This function is bound to C-k
in my minibuffer-local-map
.
Feel free to send improvements or offer a way to do it independent of the completion framework.