Is it possible to allow to select current buffer in FzfLua buffers? #1222
Replies: 2 comments
-
Ty for the kind words @lucassperez. You can make the first buffer selectable in two ways: :FzfLua buffers fzf_opts.--header-lines=false Or by disabling the sorting by most recent used: :FzfLua buffers sort_lastused=false
However you still won’t be able to close the current buffer, that would require additional logic of first switching to a different buffer (or creating a new buffer if you have just one buffer), the logic can be a bit more nuanced than this and not something I intend to add. If you wish to do that create your own custom buffer delete action that at the most basic level switches to the alternate buffer (ctrl-6) before closing the currently displayed buffer. |
Beta Was this translation helpful? Give feedback.
-
I see. Thanks for the explanation, and also such a very fast reply. Apparently it is more complicated than I thought, but just being able to see the current buffer is something that I like. I added |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, I think this plugin is awesome and your work is awesome! (:
But my question/ideia is this:
When using the command
FzfLua buffers
, it is possible to do some actions to buffers. By default, we can close buffers with<C-x>
. I find this to be very handy, but also a little strange that we cannot select the current buffer, making us unable to close the current buffer via this command. Sometimes I might want to use FzfLua to do some cleaning on open buffers and if I'm randomly on a buffer I find out I actually want to close, I can't do it now.Is there a way to allow this?
Beta Was this translation helpful? Give feedback.
All reactions