Skip to content
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

Feature request: Expand macro recursively #88

Closed
edwloef opened this issue Dec 21, 2024 · 1 comment
Closed

Feature request: Expand macro recursively #88

edwloef opened this issue Dec 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@edwloef
Copy link
Contributor

edwloef commented Dec 21, 2024

I'm not sure whether this is useful in many languages besides rust, but seeing macro-expanded code can be useful at times. Having an editor command/action to do this with the macro the cursor currently resides in would be useful.

This is how Zed does it:

2024-12-21.14-47-32.mp4
@neurocyte neurocyte added the enhancement New feature or request label Dec 21, 2024
@neurocyte
Copy link
Owner

From what I can tell this feature is just a wrapper around cargo expand {function name}. If so, I'd say this could be marked a duplicate of #67. The shell command should be specified to include a way to send the current selection (or word-at-cursor) to the shell command and also a way to specify that the output should be sent to a new buffer (and allow specifying the language).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants