feat(workspaces): +workspace/switch-to: add buffer list column

To offer more context for ivy users while switching between workspaces.

Close: #3006
Co-authored-by: rgrinberg <rgrinberg@users.noreply.github.com>~
This commit is contained in:
Henrik Lissner 2022-11-02 18:44:03 +01:00
parent 33db882ae6
commit 086e9a9322
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 24 additions and 0 deletions

View file

@ -206,6 +206,13 @@ stored in `persp-save-dir'.")
("xt" counsel-projectile-switch-project-action-run-term "invoke term from project root")
("X" counsel-projectile-switch-project-action-org-capture "org-capture into project")))
(when (modulep! :completion ivy)
(after! ivy-rich
(cl-callf plist-put ivy-rich-display-transformers-list
'+workspace/switch-to
'(:columns ((ivy-rich-candidate (:width 50))
(+workspace--ivy-rich-preview))))))
(when (modulep! :completion helm)
(after! helm-projectile
(setcar helm-source-projectile-projects-actions