-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feature/autoSave #582
base: main
Are you sure you want to change the base?
feature/autoSave #582
Conversation
ipcRenderer.invoke('renderer:set-preferences', preferences) is throwing undefined error on playwright but is working fine on manual testing, Is this something expected? |
Quick idea: Would it be possible to listen to the user focusing another application and then auto saving? Maybe with https://stackoverflow.com/a/12486475? I feel like this would be more intuitive than the 15 seconds interval. |
Looks promising! @srikary12 Fully onboard with supporting this, but I would take time to gather feedback and refine the implementation before we merge this. Just saying this early so that you are not frustrated on why the PR is not getting merged :) Here are some ideas from my side. In my past, I had built an a product (that colossally failed) which was a remix of Roam Research and Github. There is this functionality where a small circle on the right side displays the state. The sync happens every 15 seconds (which can be made configurable) In the image below, you can see the green dot in the right top |
@Its-treason I'll try to get window listener done. @helloanoop I'll add an option to update auto save time with saving when the window is closed. I'm thinking of adding colors and hover to the current save icon. |
This part can wait for a second PR. For now you can keep timeout set to 15s. Let's try to keep the PR simple, I just want to get the core part right at the first go with a clear direction on what's needed in future PRs. |
is this configurable? thanks |
Not in this PR. But would make it configurable in the next iteration. |
@srikary12 There is a 1.0.0 release being planned on Oct 28th. Until then stability of the platform is important. |
Another suggestion on solving auto-save could be to listen for changes in the documents and then some X seconds after the last change do the save? That way you don't have to run a timer that saves "just in case" every 15 seconds. Though of course it in turn would require a timer that delays the saving (if the delay is necessary). |
Can we merge it? Great feature |
Any chance of this being merged? Would really love to have this feature included. |
it would be nice to be optional, i would not like to revert it on git every time i change some parameters to make a request, or make a accidental commit.. |
need auto save! |
I can fix it, I see that it's not merged yet. |
Auto Save functionality with default 15sec interval.
Link to discussion: #142.