-
Notifications
You must be signed in to change notification settings - Fork 1.3k
save: Perform write process safe #3273
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5c21241
actions: SaveAs: Print the error of `os.Stat()` to the `InfoBar`
JoeKar 3fcaf16
actions: SaveCmd: Print the error of `SaveAs` to the `InfoBar`
JoeKar edc5ff7
save: Convert `os.IsNotExist()` into `errors.Is()`
JoeKar 6bcec21
open & write: Process regular files only
JoeKar 6066c1a
buffer: Convert `os.Is()` into `errors.Is()`
JoeKar 7c659d1
backup: Convert `os.IsNotExist()` into `errors.Is()`
JoeKar 0b871e1
backup: Store the file with the endings of the buffer
JoeKar 42ae05b
backup: Lock the buffer lines in `Backup()`
JoeKar 5aac42d
bindings: Convert `os.IsNotExist()` into `errors.Is()`
JoeKar c2bc468
clean: Inform about all failed write steps
JoeKar e828027
clean: Remove some unneeded `filepath.Join()` calls
JoeKar 69064cf
util: Improve and rename `EscapePath()` to `DetermineEscapePath()`
JoeKar 18a81f0
util: Generalize the file mode of 0666 with `util.FileMode`
JoeKar 6e8daa1
ioutil: Remove deprecated functions where possible
JoeKar 9b53257
save: Perform write process safe
JoeKar 1663a1a
actions: Don't overwrite the buffers `Path`
JoeKar 21b7080
util: Provide `AppendBackupSuffix()` for further transformations
JoeKar 4ac8c78
backup: Perform write process safe
JoeKar 022ec02
util: Provide `SafeWrite()` to generalize the internal file write pro…
JoeKar c972360
serialize: Perform write process safe
JoeKar 63d68ec
bindings: Perform write process safe
JoeKar c926649
settings: Perform write process safe
JoeKar f8d9855
save: Merge `overwrite()` into `overwriteFile()` and extract `writeFi…
JoeKar 9592bb1
save: Further rework of `overwriteFile()`
JoeKar e15bb88
micro: Generalize exit behavior
JoeKar c4dcef3
micro: Provide recovery of `settings.json` & `bindings.json`
JoeKar 8c883c6
backup: Rearrange and extend `BackupMsg`
JoeKar 35d295d
buffer: Remove superfluous `backupTime`
JoeKar 771aab2
save+backup: Process the `save` & `backup` with a sequential channel
JoeKar 79ce93f
backup: Clear the requested backup upon completion notification
JoeKar 49aebe8
save+util: Provide a meaningful error message for safe (over-)write f…
JoeKar 6164050
save: Update the modification time of the buffer only in case of file…
JoeKar fe134b9
history: Perform write process safe
JoeKar 8b21724
buffer: Store the `encoding` inside the `buffer`
JoeKar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.