vim-buffet icon indicating copy to clipboard operation
vim-buffet copied to clipboard

Feature request: Show buffer numbers (instead or alongside indexes)

Open Nemoden opened this issue 5 years ago • 1 comments

Although having ordinal indexes is great, I'd like to have a visibility over buffer's number. In order to switch to lynx.conf, I'd normally do :b <number>, but I'm confusing actual buffer number (3) with it's index (2).

Indexes (lynx.conf -> 2, README.md -> 3): Screenshot 2020-03-26 12 56 10

Actual numbers which can be checked with :buffers (lynx.conf -> 3, README.md -> 4): Screenshot 2020-03-26 12 56 23

To make it work nicely there might be options. There are some ideas:

let g:buffet_show_index = 1
let g:buffet_index_type = "index" " default
let g:buffet_index_type = "number" " shows number INSTEAD of indexes
let g:buffet_show_number = 1 " 0 is default

Last one I like best. What It would do is

  • if let g:buffet_show_index = 1 AND let g:buffet_show_number = 1, then tab would show <index> (#<number>) <title>, i.e. 2 (#3) lynx.conf
  • if let g:buffet_show_index = 1 AND let g:buffet_show_number = 0 then we have what we have now
  • if let g:buffet_show_index = 0 AND let g:buffet_show_number = 1 then tab would show #<number> <title>, i.e. #3 lynx.conf
  • if let g:buffet_show_index = 0 AND let g:buffet_show_number = 0 then it's obvious

Nemoden avatar Mar 26 '20 02:03 Nemoden

@Nemoden sorry for late response and thanks for filing this request while explaining the motivation and suggesting ideas 👍 It would be better to address this in the scope of #32, for which I will try to find some time in the next month.

bagrat avatar Jun 26 '20 09:06 bagrat