leath-dub / snipe.nvim

Efficient targetted menu built for fast buffer navigation
226 stars 13 forks source link

Feature request: show active buffer on the list #21

Closed jellydn closed 1 week ago

jellydn commented 2 months ago

What

Show active buffer on the list and it shouldn't be selectable

How

Currently, our buffer list looks like this:

Image from Gyazo

I found the way fzf-lua does with FzfLua buffers is more user-friendly. Please take a look at the screenshot below. Could we implement something similar?

Image from Gyazo

Looking forward to your thoughts on this request. Thank you!

leath-dub commented 2 months ago

ahh right so have the cursor default on the current buffer?

jellydn commented 2 months ago

ahh right so have the cursor default on the current buffer?

Correct 👍

leath-dub commented 1 week ago

Ok so this will be possible in the new version. When opening a menu you can pass an optional "preselect" argument which will jump you the item at that preselected index

leath-dub commented 1 week ago

This is now possible vi ui.preselect_current option on the snipe2 branch