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

Alert the user when in-view buffer gets modified externally #9176

Closed
gyreas opened this issue Dec 27, 2023 · 1 comment
Closed

Alert the user when in-view buffer gets modified externally #9176

gyreas opened this issue Dec 27, 2023 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@gyreas
Copy link

gyreas commented Dec 27, 2023

As the title suggests, when the current document is modified externally, the user should be alerted of this. This allows the user to take action without having to find out when attempting to save the document. This is particularly useful when editing using multiple IDE/editors eg Intellij + hx.

  • A background task will monitor the modified state of the document in any editing mode, then alert accordingly.
  • The alert box should be of a prominent red color, preferably outlined like Infoboxes
  • Ideally, present the user with a dialog to keep their version or update the document.

I'm new to Rust, tho. Anyway, this is what I got for PoC.
image

@gyreas gyreas added the C-enhancement Category: Improvements label Dec 27, 2023
@pascalkuthe
Copy link
Member

Duplicate of #1125

@pascalkuthe pascalkuthe marked this as a duplicate of #1125 Dec 27, 2023
@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants