Closed ruiheng closed 6 years ago
Hey @ruiheng, thank you for the PR. I like the idea and your considerations, but I can't merge it for a few reasons:
wintabs#renderers#buf_label
is used in vim-wintabs-powerline
, so it can't be changed in backward-incompatible way.%n
seems strange as one uses superscript numbers and one uses regular. I think it's better to have them render the same style, probably configurable between superscript and regular.I'd love to merge your PR if you can find ways to walkaround these issues. Thank you for taking time on this!
I didn't know vim-wintabs-powerline
before.
Since I am not familiar with VimL, I may not find any workarounds in short time.
Thanks.
Closing this since it's unlikely to be mergeable in its current state. Thank you for doing this! I'll try to include index number the next time I change renderer API.
In my branch, I added number prefixes to each buffer name, begin with 1. This number is controlled by format string '%o'.
The point is that, for example, with proper key mapping, I can switch to the first buffer with key
<leader>1
, key<leader>0
to the 10th buffer, and I know exactly which number key to use by looking at the number prefix.Some my considerations:
Hopefully this small enhancement can be useful to others.