Wish: Autosave when tab looses focus
Closed this issue · 5 comments
This would be similar to what VSCode does and it's really nice. I move around in the app a lot and would like it autosave more often based on my internal tab activity.
PS: Thanks for providing this plugin. Love it!
Can you explain better what is you desired behavior?
I'm not familiar with your VSCode reference.
Currently you can autosave at often as 1sec.
This is the behavior I'm looking for:
- Make some edits in tab 1
- Switch to tab 2
Result: tab 1 (and only tab 1) is autosaved.
Similar situation:
- Make some edits to tab 1
- Switch to a different app
Result: tab 1 (and only tab 1) is autosaved
This is what VSCode does and I love it. The current plugin for NP++ requires me to change the focus to a different app, then it flips through every single tab, so there is a visual distraction when this happens.
Adding another comment here to say how very much I would like to have this changed in the plugin! I have lost data a few times because I left the app focused when I left the machine and another process updated the file. I also have something like 40 files open, so np++ goes crazy when I switch to another app. If you are willing to share the code, I could try to make this change myself...
Please take a look at the latest version 2v00 which should implement what you want.
Please note that there are major changes impacting previous features.
If you are ok with this behavior I will eventually push it to the N++ repo.
https://github.com/francostellari/NppPlugins/tree/main/AutoSave