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

Watch open files for updates and auto-update to latest versions when changed externally #1900

Closed
aral opened this issue Mar 31, 2022 · 1 comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@aral
Copy link
Contributor

aral commented Mar 31, 2022

The problem

Say I have (knowingly or unknowingly) File A open in two different instances of Helix – Editor X and Y.

File A:

1. hello
2. goodbye
  1. I change line 1 in File A in Editor X To 1. hi and save it (:w)
  2. I look at Editor Y, line 1 still reads 1. hello.
  3. If in Editor Y, I change line 2 to 2. bye and save, I’ve overwritten the change in Editor X.

How other editors handle it

Editors (e.g., VSCode) handle this by watching open files for changes. If a change is detected, the file in the editor is automatically updated to the latest version from disk.

@aral aral added the C-enhancement Category: Improvements label Mar 31, 2022
@aral aral changed the title Watch open files for updates and auto-update to latest versions Watch open files for updates and auto-update to latest versions if changed externally Mar 31, 2022
@aral aral changed the title Watch open files for updates and auto-update to latest versions if changed externally Watch open files for updates and auto-update to latest versions when changed externally Mar 31, 2022
@archseer
Copy link
Member

Duplicate of #1125

@archseer archseer marked this as a duplicate of #1125 Mar 31, 2022
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

3 participants