-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
In the README file it says that project-tab-groups-tab-group-name-function
's default setting will try to look for two dir-local variables, if they are not found it will fall back to the project’s directory name.
In my case opening a project, the new tab bar gets the buffer's name and changing the buffer changes the name of the tab bar too. Am I misunderstanding how project-tab-groups-tab-group-name-function
is supposed to work? The way I understood is if I open a project with path ~/myprojects/foobar
, the tab bar should be renamed to foobar
.
Relative parts from my config
(defun my/project-magit-status ()
"Open `magit' within project root."
(interactive)
(magit-status
(project-root
(project-current))))
(use-package project
:bind (:map project-prefix-map
("k" . my/close-project-tab)
("F" . consult-ripgrep))
:custom
(project-vc-merge-submodules t)
(project-vc-extra-root-markers '(".project"))
(project-switch-commands
'((project-find-file "Find file")
(project-find-regexp "Find regexp")
(project-find-dir "Find directory")
(project-dired "Root dired")
(project-vc-dir "VC-Dir")
(project-shell "Shell")
(project-eshell "Eshell")
(my/project-magit-status "Magit")
(consult-ripgrep "Ripgrep"))))
;;; Workspaces (tabspace-mode)
(tab-bar-mode +1)
(use-package project-tab-groups
:straight t
:init
(project-tab-groups-mode 1))
Metadata
Metadata
Assignees
Labels
No labels