-
Notifications
You must be signed in to change notification settings - Fork 72
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
Order options for Buftabline #74
Comments
Sorry I missed this issue entirely. There is no such feature currently. There are requests for several related features that so far I’ve not accepted, for reasons outlined in #8 (though only a few of those reasons apply to this issue or #61). But your phrasing is making me think it might be doable as a hook for reordering the return value of the |
I'm not too up on my vimscript, but it looks like From your previous MRs, your aversion to a reordering of buffers is rooted in simplicity, and rightly so! Maintaining a registry of buffer orders would be overkill for a 200 line plugin. If we did instead put a hook in that reordered |
Mainly The point is that buffers are displayed in the order that the function returns them, and it returns them in increasing buffer number order. This is the same order Vim uses anywhere it needs an ordering for buffers (such as This isn’t about code bloat so much as it is about minimising the amount of user-visible functionality. What I am now thinking is that if there was simply a hook to return the list of buffers in a user-defined order, that alone would be enough – not just to configure the display order in the plugin, but also to let users define in Now I need to try to implement one of the requested custom orderings to see whether this design pans out in practice like it promises to in my head, and what the details should look like. (In particular whether the hook should sit inside or outside the |
It would be nice to allow i.e. alphabetical ordering of buftabs 👍 |
Hi! Love
buftabline
, its great.#61 already mentioned something similar, but is it possible to order the buffer-tabs alphabetically by file name? So, opening a new tab would just insert the buffer into the correct, ordered space. That, or a function that orders the tabs.
Is this possible already? Or would we need a new PR?
Thanks for the plugin :)
The text was updated successfully, but these errors were encountered: