leath-dub / snipe.nvim

Efficient targetted menu built for fast buffer navigation
155 stars 7 forks source link

Feature Request: buffer numbers for first 10 on list, then single letters, then two #22

Open jam1015 opened 3 weeks ago

jam1015 commented 3 weeks ago

Two related requests: 1) Have the option for the keys to get to a buffer just be the numbers 1-9 for the first 9 buffers, and then rely on letter combinations for the others

2) For those letter combinations, present as many one letter codes as possible, and then jump to two letter codes when necessary . Right now it only presents two letter codes when the number of buffers exceeds the number of characters in the hints dictionary

leath-dub commented 3 weeks ago

Have the option for the keys to get to a buffer just be the numbers 1-9 for the first 9 buffers, and then rely on letter combinations for the others

Do you mean have each number associate with the buffers id/nr or just that the first 9 presented. If the latter this is already possible if you just prefix the dictionary with "123456789..."

For those letter combinations, present as many one letter codes as possible, and then jump to two letter codes when necessary . Right now it only presents two letter codes when the number of buffers exceeds the number of characters in the hints dictionary

This is definitely something I want to look into, I am going to refer to some other plugins to see how they generate the key tags ( maybe mini.jump and mini.jump2d will help me here ).

jam1015 commented 3 weeks ago

Do you mean have each number associate with the buffers id/nr or just that the first 9 presented. If the latter this is already possible if you just prefix the dictionary with "123456789..."

The first thing. For the first ten buffers, or perhaps more, access the buffers with their actual numbers. Use '0' for buffer 10.

This is definitely something I want to look into, I am going to refer to some other plugins to see how they generate the key tags ( maybe mini.jump and mini.jump2d will help me here ).

Thanks for making such a great plugin, I wanted to make something like this but getting it done would have been very difficult and time consuming for me, or a mess of autocommands in vimscript.