Open pupbrained opened 6 days ago
Can you try modifying the variable centaur-tabs-excluded-prefixes
? 🤔
I'm not exactly sure what I would add to the variable, since the titles of dirvish tabs are always the name of the directory instead of something static.
Ah, got it. How about centaur-tabs-hide-predicate
? 🤔 Can it be detected with major mode or minor mode?
I tried:
(defun my/centaur-tabs-hide-predicate ()
"Hide Centaur Tabs in `dired-mode` and `dirvish-mode`."
(or (derived-mode-p 'dired-mode)
(derived-mode-p 'dirvish-mode)))
(setq centaur-tabs-hide-predicate 'my/centaur-tabs-hide-predicate)
But again, no luck.
I'm using centaur-tabs and dirvish as a dired replacement, with dirvish-side. Right now I have the following config:
I'm not sure if I'm missing something, but once I've opened dirvish it persists in the tab bar no matter what I do. I just want to hide it in general.