-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
[Request] Preserve file modified time when saving #1543
Comments
Hello @Hippobotus , Here a few Apps:
|
Hello hpwamr, Thank you for the quick reply. I will take a look at the suggested apps to see how I can incorporate them into my work-flow. Cheers! |
Hello @RaiKoHoff , |
I'd like to chime in here. I have to admit that this is not a functionality which natively belongs into a text editor as it comes from another domain. So I understand the hesitation here as NP3 should remain slim and focused to its core tasks. But I also have to admit that I have the same problem myself quite often – I regularly perform some "minor" changes to certain files (e.g. scripts) which do not change their meaning/logic/behavior (for example pure typo corrections in comments). In this case I reset the file modification date after the change to signal that the "main content" actually has an older validity date. This is a very specific use case of course. So while I certainly would welcome the possibility to make changes to files with NP3 without actually changing their modification date, I would also very well understand a "no" regarding this feature request. Remark: it should be noted that this feature could also have serious implications if users are not aware of its side effects. For example there are backup programs which for performance reasons only consider the modification date (and maybe size and/or attributes) of a file as criterion whether to backup it up or not (i.e., whether it represents a new version or not). In case of file modifications without changes to the date this could fail and the user unexpectedly would not have the most recent content of a file saved. So should this feature be realized, I suggest to have it disabled by default, with the user being required to explicitly turn it on. |
Yes, you make positive points. 👍 |
Feel free to test development beta version _5.19.827.2599_BETA.
(suggestions for better wording are always welcome) |
Hello @Hippobotus , @ShadyGaDa , @engelhro Feel free to test the BETA version "Notepad3Portable_5.19.827.2601_BETA" or higher. |
Hello, It is a pleasant surprise to see this suggestion picked up. Please excuse me for not noticing this sooner. The feature works well and as suggested on the comments above, it is perfect as a one-off non-permanent use. If anything, it would be easier on the workflow if this new feature was added as part of 'Save' commands on the 'File' menu and able to save with a hotkey. For example:
Once again, thank you @RaiKoHoff and @hpwamr. Cheers! |
Hello @Hippobotus , @ShadyGaDa , @engelhro , @RaiKoHoff , What do you think of this change:
We are very short with "HotKey's"
|
|
Hello @hpwamr and @RaiKoHoff, I'm ok with the suggestions - wordings and the hotkeys. Any one of them is fine, with a slight preference for the 1st one.
Cheers! |
If I understand correctly, this should not be an persisted option (like the current implementation), but an additional command like the "Save" (Ctrl+S) (preserving the modification timestamp)? |
This is my preference with Alt+F6 ! 🤔 😃 |
Feel free to test dev beta ver _5.19.902.2613_BETA. |
Hello @hpwamr and @RaiKoHoff, I have been trying out the new feature and I am happy to report that it is working as intended and there are no problems so far. Cheers! |
Hello @Hippobotus , @ShadyGaDa , @engelhro , Feel free to test the BETA version "Notepad3Portable_5.19.903.2616_BETA" or higher. As far as I am concerned, this issue may be closed.... |
Hello @hpwamr and @RaiKoHoff,
Yes, I did. No issues at all.
Again yes, this is basically done. Thanks for helping out with this feature request. =] |
Hello, I've just tested the new feature (with beta 5.19.904.2617).
Actually, I'd prefer the other solution, with a permanent setting, or even better one that lasts just as long as I have a certain document open (similar to the file change notification which can be reset when opening another document). Reason: So "remapping" the regular file save action to the one which keeps the timestamp while I have the document open and activated the "keep timestamp" option would be the most convenient solution, at least for me. What do you think? |
Hello @RaiKoHoff
|
So a solution would be: |
Okay, to simplify things: Everything as before, except: Feel free to test dev beta ver _5.19.905.2619_BETA. |
@RaiKoHoff: Just tested that beta and I have to say I'm very pleased! 👍 Fits my workflow perfectly! I think that implementation is a very reasonable approach, easy to understand and use. I have no preference regarding the warning dialogue, but maybe it is a good idea to have one shown once for users not aware of that feature. So at least I'm fine now with the current solution 🙂. |
Hello @Hippobotus , |
Hello @Hippobotus, @RaiKoHoff Thanks once again. Pardon for the delay, closing now. =] |
I didn't realise it at the time, but I'm finding this feature really useful. Thanks. |
Hello,
I wonder if Notepad3 can preserve file modified time when saving a file, as in keeping the file's created time as modified time.
I find this very helpful when editing old batch files to generate log files. When sorted in an Explorer window, the newly edited batch files doesn't get in the way of the log files themselves.
Akelpad has a similar feature but sadly it is no being actively developed.
Thank you.
The text was updated successfully, but these errors were encountered: