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: Suggest an edit for note/help #56

Open
spencerpogo opened this issue Dec 22, 2022 · 3 comments
Open

Feature Request: Suggest an edit for note/help #56

spencerpogo opened this issue Dec 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@spencerpogo
Copy link

Would be useful to be able to suggest edits in a note/help message similar to how rust does it.

Need to be able to provide a new version of the line/file, not sure how that would work.

@zesterer zesterer added the enhancement New feature or request label Jan 2, 2023
@zesterer
Copy link
Owner

zesterer commented Jan 2, 2023

I'll have to think about how to implement this carefully, but I agree that it's definitely desirable!

@oppiliappan
Copy link

i love the idea of doing this (i'd imagine a lot of effort might go behind the implementation of this). i just wanted to second this as i have a use case for this in statix to supply "fix" suggestions. currently, the suggestion is just supplied as part of the message as Try ... instead:
Screenshot_20230108_025831

@zesterer
Copy link
Owner

Yes, I do a similar thing in Tao. It works for the most part, but it would be nice to have an inline hint.

image

I've been meaning to give this crate the time it needs for a full refactor, but I've yet to find the time (life keeps throwing curveballs at me). I'd definitely want this feature to be part of that.

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

3 participants