Added autosave in x seconds feature. #507
Open
+86
−1
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.
Hey, I implemented a feature for autosaving modified files in x seconds. Currently, it works by checking if there is no input for the specified amount of time in the configuration, and then it will save all modified buffers in the editor. For files that have been modified on the disk with changes in the editor, it will not autosave the new changes. There is a bug currently when inputting backspaces, as it does not reset the timer for the autosave and will autosave as if no changes are being made, even though there is user input. The session modified buffer functionality has some overlap with this, and once it is implemented it may be able to fix the problem. You may already be trying to implement this with the session modified buffer code, so you might want to discard or take what pieces you want from this, thanks.