Global tab bar

What happened?

I have activated the tab bar in init.el:

(tabs)

For one project I have a monorepo layout like this:

mono_project
    sub_project_a
        file_a1
    sub_project_b
        file_b1

When I open emacs at mono_project and then open file_a1 and file_b1 I won’t see both files in the same tab bar. Instead it seems that the files are separated in different tab bar groups for each sub_project and never shown next to each other.

What did you expect to happen?

I’m wondering if it’s possible to use tabs similar to global-tab-line-mode, where all opened buffers are just shown globally next to each other, no matter what sub-project/workspace they belong to?

I’m not sure if this is a robust solution, but I fixed it like this for now:

(use-package! centaur-tabs
  :hook (doom-first-file . centaur-tabs-mode)
  :init
  (setq centaur-tabs-set-icons t
        centaur-tabs-gray-out-icons 'buffer
        ;; Rest of settings removed for readability...
        centaur-tabs-cycle-scope 'tabs
        )
  :config
  ;; (centaur-tabs-group-by-projectile-project)
  (defadvice! +tabs--fixed-centaur-tabs-project-name-a ()
    :override #'centaur-tabs-project-name
    "all"
    )
  )

This overrides the centaur-tabs-project-name function to always return a project with the name all. This way centaurs internal grouping mechanism puts all “normal” buffers into that global group.