-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic implementation of a buffer list #1065
Conversation
aad6d49
to
424999e
Compare
Following the advice of @doppioandante, I've decided not to implement any kind of smart behaviour in the buffer list, the buffers are now displayed from left to right, with no attempts at showing buffers surrounding the active one. |
Isn't there a naming clash with |
I don't think so, what makes you say that? The commits merely add an ncurses UI widget, it doesn't interfere with options. |
Not technically speaking, but for the user, it may be confusing reading the same name for two different things. (The fact is I had to make an effort to forget about %opt{buflist} while reading the PR. Maybe I used this a lot, recently :) ) |
Branch rebased against 3a0d948, and the second commit has been squashed into the other for easiness of maintainance purposes. |
Thanks for this PR. How do you use this buffer list in practice? By using 1 buffer-foo | 2 buffer-bar | 3 buffer-qux … This way I've bound key mapping to quickly jump to a specific buffer. Like Is this something convenient that's worth adding? |
I consider this more of a widget and a visual representation of kakoune's state than an actual tool. Consequently I don't think I would like to add numbering to the bar, however you can add that feature very easily. Also you could probably implement the bindings you mention with a shell scope (assuming the buffers in |
If someone is interested after reading this thread, here's an alternative suggestion by danr, using
https://gist.github.com/danr/e69a55129a3fd27f1f098d4e167afccd |
I would like the feedback on buffer change being built-in. It’s something missing when doing |
You mean something like a |
What you can do since recently is add
in addition to the bufinfo implementation so that you get the popup without having to remap every commands that changes the current buffer. |
@Delapouite No, I mean the feedback being built-in. |
I documented the options/faces added, and rebased on 55d1d10. |
Fixed some issues that glitched the rendering. |
Here's an alternative solution using external bars like lemonbar : https://github.com/mawww/kakoune/wiki/Bar |
In my view, #1942 superseeds this PR, and I have no intention to merge this PR, as it is pretty intrusive, closing. |
Hi,
Here's what it looks like (my theme+default):
As you can see, the separator is customizable, as well as the faces used to render the bar. A unicode ellipsis is inserted at the beginning/end of the list when there wasn't enough space to print an entire buffer name.
Read the first commit message for all the details.