tab-bar-switch-to-{prev,next}-tab and related issues
indigoviolet opened this issue · 1 comments
I'm trying to figure out some stuff with bufler-tabs-mode (which is great, but has a few small frictions in my usage -- a lot of relevant discussion in #19)
-
The order of tabs isn't stable - it changes sometimes when I change buffers. I don't care about the order itself very much, but being stable is helpful. Changing orders resets my muscle memory/mental model of which direction tabs or buffers are.
-
tab-bar-switch-to-next/prev-tab
doesn't seem to work as I expected (I have a workaround).
What I'm seeing: when I invoke tab-bar-switch-to-next-tab
, the highlighted tab changes to the next one, but if I cause a refresh of the header line somehow, it switches back to the original tab. The tab-line does not change to reflect the buffers in the next tab.
When I do the same thing through C-<tab>
bound to tab-next
, the tab-line updates, but forcing a refresh of the header line brings me back to the original position.
Clicking on the tab with the mouse behaves similar to C-tab.
This all seems to be because the highlighted tab auto-refreshes to be
match the workspace of the current buffer, and switching tabs doesn't switch buffers -- which I could fix by doing something like:
(progn (tab-bar-switch-to-next-tab) (switch-to-buffer (seq-first (bufler-workspace-buffers))))
- I'd like to echo the point from #19 about subcategories -- Especially for
*Special*
workspaces, creating the subcategory tabs causes thrash that isn't helpful (at least in my usage of the tabs feature). I guess the intent is so you can narrow to the buffers of the subcategory? I can see how it is useful intab-bar-select-tab
, but it would be nice to turn off the automatic tab creation.
Hi,
Thanks for the feedback. At the moment the best I can offer is that bufler-tabs-mode
was implemented a few years ago, before Emacs's own tab bar features were fully implemented, and was somewhat of an experiment or proof-of-concept. Now that Emacs's own features have stabilized, it needs to be redesigned and reimplemented thoughtfully.
Having said that, if any small, simple changes could be made to the current implementation to smooth its rough edges and make it more useful, I'm not opposed to their being made. But I don't have much time to work on such changes myself.
FWIW, now I mostly find myself using Emacs's own tab-bar-mode
with burly-tabs-mode
. Ideally they would somehow integrate well together, but that's a long-term goal.