centaur-tabs
centaur-tabs copied to clipboard
Disable tabset behaviour?
Hello,
Thank you for making centaur-tabs, it looks awesome
The screenshot in the repo makes it seem like you can have multiple tabs with different extensions in a single tab group, but I'm not seeing this behaviour, and can't figure out how to get this behaviour. The behaviour I get is that opening buffers in different modes puts them into different tab groups (ie I get one tab group for all dired buffers, one for all org-mode buffers, etc.)
digging into the centaur-tabs variables, I see that this has nothing to do with tab groups and everything to do with tabsets.
my centaur-tabs-tabsets
variable has an Emacs, and OrgMode, and a Dired entry, and centaur-tabs-current-tabset
is currently set to 'Dired whenb I'm in a dired buffer.
I can't find any info in the documentation regarding tabsets or how to change this default behaviour.
Am I missing something?
P.S. I'm using doom-emacs, currently running centaur tabs version 2154fa9679c5fa02a2a7e3d4c739256fd991a789 from about a month ago, but i don't see anything in the git log to suggest a relevant change in the last 6 commits since then, so I don't think that's the issue. If I'm wrong, please let me know!
My centaur-tabs config is as follows:
(use-package! centaur-tabs
:hook (doom-first-file . centaur-tabs-mode)
:init
(setq centaur-tabs-set-icons t
centaur-tabs-gray-out-icons 'buffer
centaur-tabs-set-bar 'left
centaur-tabs-set-modified-marker t
centaur-tabs-close-button "✕"
centaur-tabs-modified-marker "⬤"
;; Scrolling (with the mouse wheel) past the end of the tab list
;; replaces the tab list with that of another Doom workspace. This
;; prevents that.
centaur-tabs-cycle-scope 'tabs)
:config
(add-hook '+doom-dashboard-mode-hook #'centaur-tabs-local-mode)
(add-hook '+popup-buffer-mode-hook #'centaur-tabs-local-mode))
You should be able to achieve that using a custom centaur-tabs grouping function. Please tell me how would you like to group your tabs so I can help you.
That would be great!
What I'd really love to have is for all new tabs to go into a 'default' group, with the option to move individual tabs into a new / different group on demand.
How difficult would that be to implement?
I'm learning lisp in my spare time, but it's difficult because there's a lot to learn. I'm not really sure how I would implement this
Oh, that's a feature that I have in mind. Emacs 27's native tabs do that and it's a feature that I'll be implementing soon, although it needs a little bit of research.
Ok, awesome!
Any idea or rough timeline on when this feature might be available?
It should be ready soon. I got a new laptop so now I'm able to work much more comfortably :smile:. The thing is, with the current structure of the package, the tab groups feature is deeply embedded inside, so I'll have to adapt the "tabs per window" feature to it. That's what's making it challenging but it may be ready soon.