Skip to content

Commit

Permalink
feat: Support grouping shell
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 21, 2024
1 parent c86a0ab commit 3346b23
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions centaur-tabs-functions.el
Original file line number Diff line number Diff line change
Expand Up @@ -1310,23 +1310,19 @@ Other buffer group by `centaur-tabs-get-group-name' with project name."
(list
(cond
((or (string-equal "*" (substring (buffer-name) 0 1))
(memq major-mode '(magit-process-mode
magit-status-mode
magit-diff-mode
magit-log-mode
magit-file-mode
magit-blob-mode
magit-blame-mode
)))
(memq major-mode '( magit-process-mode
magit-status-mode
magit-diff-mode
magit-log-mode
magit-file-mode
magit-blob-mode
magit-blame-mode)))
"Emacs")
((derived-mode-p 'eshell-mode)
"EShell")
((derived-mode-p 'emacs-lisp-mode)
"Elisp")
((derived-mode-p 'dired-mode)
"Dired")
((memq major-mode '(org-mode org-agenda-mode diary-mode))
"OrgMode")
((derived-mode-p 'shell-mode) "Shell")
((derived-mode-p 'eshell-mode) "EShell")
((derived-mode-p 'emacs-lisp-mode) "Elisp")
((derived-mode-p 'dired-mode) "Dired")
((memq major-mode '( org-mode org-agenda-mode diary-mode)) "OrgMode")
(t
(centaur-tabs-get-group-name (current-buffer))))))

Expand Down

0 comments on commit 3346b23

Please sign in to comment.