Replies: 2 comments 4 replies
-
Thanks for the feature request. I am happy to consider patches which improve consult-xref to support more xref location types. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you also test the original completing-read xref UI? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for the amazing, amazing tool.
I recently began work on an xref backend for a mode that can only have references within a current file. It is fine to only provide buffer xrefs in this case (i.e. a pair of (current-buffer) and a position within the buffer).
But it turns out consult-xref--candidates only supports file xrefs:
And buffer xrefs are just collapsed into a single ref, while the original Xref UI shows them just fine.
Notably, consult-xref--preview does support xref-buffer-location. I believe the code above should also handle buffer-locations.
Thank you, sorry for not providing a patch
Beta Was this translation helpful? Give feedback.
All reactions