-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Emacs 28, project-find-regexp can be configured to use the minibuffer, if so, detect and report grep category #40
Comments
Another option is to use |
I don't know what the best way is to support |
Maybe the best thing to do is to only document this, then. Tell people that if they configure Emacs so that project-rind-regexp uses the minibuffer, they might also want to configure Marginalia to report |
Yes, exactly we should document this very clearly - probably both in the marginalia readme and in the embark readme. I think it is better if we do not maintain long lists of commands. Commands which can be supported using catch-all prompt classifiers or other classifiers - these we should obviously support here! |
Ah, browsing the source code for the future Emacs 28 I learned that this |
@oantolin That's good. But I am not sure if we can report xref-location for Alternatively i could change the location to use xref-items/xref-file-locations. For now I've not seen an advantage in doing so, I've rather seen disadvantages due to the complexity/generality of xref (I think I am not a huge fan of xref and neither of oop and clos/eieio). |
From the screenshot in oantolin/embark#47 I gather that these grep results are one possible form of an |
That's a fiction internal to Consult, the world outside sees only the "file:line:string" strings. And this |
That's good to know. I've never really been sure if there is not some place where |
Do you have a reference, which shows the allowed formats of |
I'm pretty sure there isn't. But even if there were, Marginalia annotators and Embark exporters only recieve the candidate as a string. |
Sorry, no reference, but @jixiuf's screenshot in oantolin/embark#47 shows relative paths. |
Ok, but this does not sound particularly robust, every buffer can have its own |
OK, I'll update Embark to use xref-location and, as you say we will see if there are any problems. I'll close this too. |
We are using this new category name because it seems that is what xref Emacs 28 will use. See the discussion in minad/marginalia#40 and commit minad/consult@9fd1efc
Over at oantolin/embark#47, @jixiuf mentioned that in Emacs 28 you will be able to configure project-find-regexp to use the minibuffer to choose a search result. I understand the default will not use the minibuffer. It would be good if Marginalia can detect when
project-find-regexp
is using the minibuffer in this way, and have the categorygrep
reported in that case.As usual, my Emacs snapshot lags behind master and I don't actually have that feature, so I'm writing this issue so we don't forget.
In the meantime, I told @jxiuf to put
(project-find-regexp . grep)
inmarginalia-command-categories
.The text was updated successfully, but these errors were encountered: