Auto save files after timeout#146
Open
joshuamegnauth54 wants to merge 6 commits intopop-os:masterfrom
Open
Conversation
The app must register modified tabs to be autosaver as well as remove cancelled tabs. With this commit, the autosaver is functional. Todo: * Config option for the save timeout * Remove the asterisk for saved tabs * Clean up and dedupe
Contributor
Author
|
I have everything working if anyone wants to try it out. I still have to clean up the code a bit and add an option to enable autosaving. |
* New message to update the base timeout for the autosaver * Improve ergonomics for registering timeouts from the app
* Update tab names after auto save * Register tabs when auto saver is enabled via settings * Unregister tabs when auto saver is disabled
Contributor
Author
|
I'll rebase this on main and ensure it still works soon. |
d8bc3f3 to
556f310
Compare
|
Hi - any chance this can get merged? Looking for this feature. Thanks for all the work! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This patch implements an optional auto saver that saves changes after
Nseconds after the last change.Closes: #230
Example with a timeout of two seconds:
At the moment, this PR only targets a basic, working implementation. Future patches should revise this to be more in line with #94 by saving the changes in a back up file instead of overwriting the contents of the working file.
Tasks: