Closed ahmed-shariff closed 2 years ago
I gave it a shot. Can you try the https://github.com/nex3/perspective-el/tree/add-metadata-to-persp-switcher branch?
sweet, thanx alot. This seems to work. I'll open a new issue if I run into anything else related to this.
Patch merged into master and should reach MELPA in a couple of hours.
For reference for anyone looking for a solution with consult
(consult-customize consult--source-buffer :hidden t :default nil)
(defvar consult--source-perspective
(list :name "Perspective"
:narrow ?s
:category 'buffer
:state #'consult--buffer-state
:default t
:items #'persp-get-buffer-names))
(push consult--source-perspective consult-buffer-sources)
I am using selectrum for completion. Since perspective generates a list as a candidate list for
completing-read
, when usingpersp-switch-to-buffer*
marginalia's annotations don't work. According to https://github.com/minad/marginalia/issues/48 :Though I have not clue what this means.