ema2159 / centaur-tabs

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

The defined function "centaur-tabs-hide-tab (x)" is not effective #218

Closed Ethanlinyf closed 1 year ago

Ethanlinyf commented 1 year ago

The function below is not effective:

(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 "*Compile-Log*" 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 "*mybuf" name)

 ;; Is not magit buffer.
 (and (string-prefix-p "magit" name)
      (not (file-name-extension name)))
 )))
Ethanlinyf commented 1 year ago

After further testing, it works well.