Ctrl-S to save doesn't work for brand new files
Ed Kolis last edited by
I know this sounds like a weird edge case, but I have this habit of creating a brand new file then saving it to give it a name and a location on disk, even before I enter any text. But I can’t do this; for some reason Ctrl-S is disabled until I enter some text! Oddly Ctrl-Shift-S to save as is not disabled…any reason for this discrepancy?
Alan Kilborn last edited by
but I have this habit of creating a brand new file then saving it to give it a name and a location on disk
You are my hero. More N++ users should be like you. No smiley. I’m serious.
Ctrl-S is disabled until I enter some text!
Yes, so hit the spacebar or some such…then Save
Oddly Ctrl-Shift-S to “save as” is not disabled
Sounds like you just found a cure for having to hit the spacebar per the above! ;)
any reason for this discrepancy?
Probably not. I’m not going to sweat it. :)
Michel Merlin last edited by Michel Merlin
Notepad++ only saves the file if its content has changed
“Ed Kolis” ~20 aug « for some reason Ctrl-S is disabled until I enter some text! »
I discovered the same problem a few years ago, reported it, and was replied (from memory):
« This is normal, NP++ does NOT touch the file following your Ctrl+S if the contents has NOT been changed»
I ranted (politely, NOT like here where I prefer to be clear than diplomatic) that this was NOT the expected standard Windows behavior, and that anything unexpected is misleading the user and compromising his efficiency and safety.
Yet after years I finally found that the Notepad++ behavior is actually better than the standard one and could be followed by Windows, which would benefit everybody. Provided it is clearly explained, which I try here:
- The 1st line in the Notepad++ interface is the Menu line
- The 2nd line is the icon line
- In that 2nd line, 2nd position, you have the “Save” icon (a floppy disc); in 3rd position, “Save All” (a pile of 3 smaller floppies)
- At start, both icons are gray. In this state, if you order a “Save” (either by clicking the “Save” icon or by Ctrl+S or else), oppositely to standard Windows, this does NOT save the file.
- As soon as you change something in the file that has the focus, both icons turn light blue; then if you order a Save, it gets done, and both icons turn back to gray.
After long use I highly appreciate this; I see immediately and clearly if all the open files (a hundred in my current case) are saved; if just one has been changed (by me, or by a batch program I did, or else), then I get immediately notified by the “Save All” icon that turns blue. Also, if you instinctively save a file to make sure you don’t lose anything, and you at once regret because you wanted to change the file Date ONLY after checking if the contents had changed, with regular Windows it’s too late, but with NPPP you are covered by just checking the file Date.
I finally find that, especially with numerous files, the Notepad++ behavior is easier to manage and safer for the files.
Versailles, Fri 30 Aug 2019 20:13:05 +0200, edited (list formatting) 20:14:45