francostellari / NppPlugins

Other
105 stars 6 forks source link

Wish: Autosave when tab looses focus #22

Closed nebosite closed 1 year ago

nebosite commented 2 years ago

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!

francostellari commented 2 years ago

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.

nebosite commented 2 years ago

This is the behavior I'm looking for:

  1. Make some edits in tab 1
  2. Switch to tab 2 Result: tab 1 (and only tab 1) is autosaved.

Similar situation:

  1. Make some edits to tab 1
  2. 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.

nebosite commented 2 years ago

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...

francostellari commented 2 years ago

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

nebosite commented 1 year ago

YES! Perfect! Thank you!

From: Franco Stellari @.> Sent: Friday, September 9, 2022 11:42 AM To: francostellari/NppPlugins @.> Cc: Eric Jorgensen @.>; Author @.> Subject: Re: [francostellari/NppPlugins] Wish: Autosave when tab looses focus (Issue #22)

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

— Reply to this email directly, view it on GitHub https://github.com/francostellari/NppPlugins/issues/22#issuecomment-1242340613 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO67MMSLUKYHOY7IBXD6TLV5OAITANCNFSM5JZ3GRYQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ABO67MJWUBALHRQ4OPSA7FLV5OAITA5CNFSM5JZ3GRY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJIGJ2BI.gif Message ID: @. @.> >