notepad-plus-plus / notepad-plus-plus

Notepad++ official repository
https://notepad-plus-plus.org/
Other
22.98k stars 4.6k forks source link

[Feature request] Add a Actual AutoSave Feature #15148

Open nrv-96 opened 5 months ago

nrv-96 commented 5 months ago

Is there an existing issue for this?

Description of the Issue

In VS Code, there is an option called "Auto Save" that is missing in Notepad++ (NPP). Even if the auto-save plugin is installed in NPP, it does not satisfy the requirement.

image

In VS Code, whenever you write any code, the file is automatically saved. In NPP, however, the file is not saved even if you switch to another window.

please find the below video for more reference:

https://github.com/notepad-plus-plus/notepad-plus-plus/assets/62826272/60f1e735-e11c-4a54-9b7d-d957453ca4ae

Note: This feature is used on a daily basis. Therefore, I would like to suggest adding it as a core feature in NPP, if possible.

NPP Version: Windows 8.6.5 (64-bit)

Describe the solution you'd like.

Adding an auto-save feature similar to VS Code would be very helpful to everyone.

Debug Information

NA

Anything else?

No response

alankilborn commented 5 months ago

What is the basis for this saving in VSCode? Save on every keystroke? Time-interval save? Something else?

If based on time-interval, N++ already has something like that as far as its backup feature (if the concern is data loss).

I often make changes to files in memory that I don't want to save. I only want to save when I decide it is time. I'm sure I'm not alone in this. Certainly auto-saving such as you describe could be optional, but I'm curious how many people would want/use this. Perhaps set up a poll about it on the Community site; see N++'s ? menu to get to the Community forum.

nrv-96 commented 5 months ago

@alankilborn , In VSCode, we can define time intervals as per our convenience. I agree with you that this should be optional, allowing users to enable or disable it from settings. However, it would also be necessary for Notepad++ to have this feature.

image

https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save:~:text=the%20Status%20bar.-,Save%20/%20Auto%20Save,-By%20default%2C%20VS

cc: @donho

nrv-96 commented 1 week ago

@donho , Do we have any update on this?