Add `embark-consult-export-xref-grep'.#711
Conversation
|
@oantolin Will this make consult-xref to be able to be exported to wgrep? Because I'm missing that feature a lot |
|
@Kaspazza I believe so. I haven't tested the feature though. Did you try it, if it works for your use case? |
|
@minad I've just tried it, and it doesn't work from find file search (SPC-SPC in doom emacs) I'm using doom emacs I've set embark to this commit: And made sure to bump the package and run doom sync -u and reload. BTW if someone is looking to make it work, an option is to do embark-export first (C-c C-;) and then export to writable buffer (C-c C-e) <- this makes it work |
|
I tested this by copy&pasting the functions into my config and setting the exporter and they work (I can create a grep buffer and switch it to wgrep). I would also like to see this merged as it's super useful for my workflows. |
|
This looks good and works fine in my testing. Now that Emacs has a built-in grep-edit-mode this is even slightly more useful than it was before. |
ddd646c to
34e053c
Compare
|
@oantolin I am not sure if we still need this. The newest xref.el will have an xref-edit-mode (just added a few days ago), and we should rather encourage that people use it directly, instead of duplicating functionality unnecessarily. Note that while xref.el is builtin, it can also be installed from ELPA, so there is also no need to wait for the next Emacs release. The last xref.el on ELPA is from 2024, but I am sure there will soon be a new release, when Dmitry considers it sufficiently stable. |
Since #560 has been merged, we can also export xref items into a grep buffer.