ema2159 / centaur-tabs

Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
GNU General Public License v3.0
727 stars 50 forks source link

Can't blacklist *Org tags* #213

Open larrasket opened 11 months ago

larrasket commented 11 months ago

I've:

(defun centaur-tabs-hide-tab (x)
  "Do no to show buffer X in tabs."
  (let ((name (format "%s" x)))
    (or
     ;; Current window is not dedicated window.
     (window-dedicated-p (selected-window))

     ;; Buffer name not match below blacklist.
     (string-prefix-p "*epc" name)
     (string-prefix-p "*helm" name)
     (string-prefix-p "*Helm" name)
     (string-prefix-p "*Org Agenda*" name)
     (string-prefix-p "*lsp" name)
     (string-prefix-p "*company" name)
     (string-prefix-p "*Flycheck" name)
     (string-prefix-p "*tramp" name)
     (string-prefix-p " *Mini" name)
     (string-prefix-p "*help" name)
     (string-prefix-p "*straight" name)
     (string-prefix-p " *temp" name)
     (string-prefix-p "*Help" name)
     (string-prefix-p "*Compile-Log*" name)

     (string-prefix-p "*doom*" name)
     (string-prefix-p "*Org tags*" name)
     (string-prefix-p "*scratch*" name)
     (string-prefix-p "*Semantic" name)
     (string-prefix-p "*mu4e-headers*" name)
     (string-prefix-p "*mu4e-main*" name)
     (string-prefix-p "*mu4e-update" name)
     (string-prefix-p "*Messages*" name)
     (string-prefix-p "*Async-native-compile-log*" name)
     (string-prefix-p "*Native-compile-Log" name)

     ;; Is not magit buffer.
     (and (string-prefix-p "magit" name)
          (not (file-name-extension name))))))

However, when invoking Org-tags with C-c C-q, the tabs persists.

image

Update: same with mu4e-update buffer image

jcs090218 commented 2 months ago

This sounds strange. 🤔 We will need to investigate this further.