Update readme and add some better customisation variables

This commit is contained in:
BirDt_ 2025-08-21 17:03:00 +08:00
parent 8592cb0134
commit 12492937d3
5 changed files with 106 additions and 7 deletions

View file

@ -60,6 +60,14 @@
(save-selected-window
(neotree-dir (string-remove-prefix "project: " tab-group-name))))))
(defun theurgy-get-tab-project-dir ()
"Get the directory of the project in the current tab.
This returns nil if no project is found."
(let ((tab-group-name (tab-bar-tab-group-default (tab-bar--current-tab))))
(if (and tab-group-name (string-match-p "^project:" tab-group-name))
(string-remove-prefix "project: " tab-group-name)
nil)))
(add-hook 'tab-bar-select-tab-hook #'theurgy-swap-to-tab-project)
(defun theurgy-edit-projects-list ()