refactor(workspaces): projectile integration

Simplifies +workspaces-switch-to-project-h and refactors out the
dependency on external state.
This commit is contained in:
Henrik Lissner
2025-04-01 03:14:24 -04:00
parent 7941dfa766
commit c6f979b4e0
2 changed files with 29 additions and 40 deletions

View File

@@ -178,7 +178,7 @@ stored in `persp-save-dir'.")
;; per-project workspaces, but reuse current workspace if empty
;; HACK?? needs review
(setq projectile-switch-project-action (lambda () (+workspaces-set-project-action-fn) (+workspaces-switch-to-project-h))
(setq projectile-switch-project-action #'+workspaces-switch-to-project-h
counsel-projectile-switch-project-action
'(1 ("o" +workspaces-switch-to-project-h "open project in new workspace")
("O" counsel-projectile-switch-project-action "jump to a project buffer or file")