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

improving the file saving procedure #11153

Conversation

noktoborus
Copy link
Contributor

@noktoborus noktoborus commented Jul 12, 2024

Now helix should use fs' mtime instead of system time, that fixes problems with out-of-sync network filesystems
Use another file to write before replace origin, that gives a little more "good" behavior in case of write failure
Prevent overwrite origin file if origin is changed while write

this change includes #11142

In the case of network file systems, if the server time is ahead
of the local system time, then helix could annoy with messages
that the file has already been modified by another application.
Now:
- origin file is not touched if write is failed
- file's metadata copied before write
@kirawi kirawi assigned kirawi and unassigned kirawi Jul 13, 2024
@kirawi kirawi self-requested a review July 13, 2024 18:16
@kirawi kirawi added C-enhancement Category: Improvements A-helix-term Area: Helix term improvements labels Jul 13, 2024
@pascalkuthe
Copy link
Member

I am going to close this since we decided to stick with the approach vim uses instead: #11142 (comment)

Thanks for working on this!

Hardlinks will be solved by #11340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants