Is there a way to have Notepad++ generate new file names with the current date?
Like this:
YYYY_MM_DD_new1.txt
or similar.
Currently it just names them: new1, new2, etc.
Date in the file name will work great with autosave, there will be no name conflicts after NPP restart.
All I want is a way to store sessions between restarts. I want to autosave even the unnamed files.
Thanks.
Best Answer
I just did this using the Python Script plugin for NPP...
With the above code, as soon as I type Ctrl+N, the new file is created and saved instantly with the name formatted as defined in 'fmt' above. The path for the file to be saved is defined above as well; change it to suit your environment.