mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tweak(treemacs): use treemacs-add-and-display-current-project-exclusively
Folks seem to expect to *only* see the current project in the treemacs pane when they open it. I sort of agree, so I've tweaked +treemacs/toggle (on SPC o p) to use `treemacs-add-and-display-current-project-exclusively` instead. Fix: #7614
This commit is contained in:
@ -12,6 +12,6 @@ Use `treemacs' command for old functionality."
|
||||
(require 'treemacs)
|
||||
(pcase (treemacs-current-visibility)
|
||||
(`visible (delete-window (treemacs-get-local-window)))
|
||||
(_ (if (doom-project-p)
|
||||
(treemacs-add-and-display-current-project)
|
||||
(_ (if (treemacs--find-current-user-project)
|
||||
(treemacs-add-and-display-current-project-exclusively)
|
||||
(treemacs)))))
|
||||
|
Reference in New Issue
Block a user