Page 1 of 2
NotePad Save option
Posted: Wed Jul 31, 2013 11:46 am
by Amigo1
I noticed NotePad does not check if a file already exists prior to saving.
1) If you open NotePad by clicking on AmiDock, type in some random chars,
2) then save to RAM:test.txt
3) repeat 1) and 2) again but "accidentally" click on RAM:test.txt or enter RAM:test.txt in the string-gadget
it just overwrites.
Now, if you do 1) but try to "Save as.." RAM:test.txt, a requester appears asking if you want to overwrite.
IMHO it should ask the same when one clicks on "Save" too.
Or am I being to over-precautious?
I accidentally deleted S:Startup-Sequence... :,-(
Re: NotePad Save option
Posted: Wed Jul 31, 2013 12:11 pm
by nbache
Ouch - you are absolutely right.
I have now made a BZ entry for this, and I definitely don't think you are over-precautious.
This is not the behaviour one would normally expect from a text editor.
Best regards,
Niels
Re: NotePad Save option
Posted: Wed Jul 31, 2013 12:25 pm
by kas1e
@nbache
Maybe you too fast:
I checked for sake of test notepad on winxp (sure not the thing on which we rely, but), and there is acts the same 1:1 : when you press "save" it overwrite the exiting file , but when "save as" it ask for name, and then when choice that file, it ask "overwrite or not". I.e. the same as our notepad on os4. Dunno through if it right or not, but at least react the same.
Maybe that overwriting is even good to have, because you know that when you press save, you no need to press anything else, it just saves right now. It also good to make a save of your work: you type text, and then just press "amiga+s" and it saves, without needs to boring with asl-requester. i.e. fast and productive work. But if you want it, then you choice "save as". Imho logical and right ..
Re: NotePad Save option
Posted: Wed Jul 31, 2013 3:02 pm
by Amigo1
@kas1e
Specifically I think it would be good if it asks the first time, when creating a file. After that, of course there is no need to ask if it overwrites...
I just checked the same with:
Wordworth 7
Wordworth 6
TurboCalc 5.01
AbiWord (AmiCygnix)
TextEdid (MacOS X 10.8)
TextEdit (MacOS X 10.6)
AbiWord (Linux Mind)
AbiWord (Debian)
LibreOffice (Debian)
they all check prior first saving, unlike... Microsoft XP Edit(?).. mmh
Well, whatever then. I'll try to not make mistakes next time.
edit: And DeluxePaint 3 and IV check before overwriting too (A2000)

Re: NotePad Save option
Posted: Wed Jul 31, 2013 7:22 pm
by nbache
kas1e wrote:@nbache
Maybe you too fast:
I checked for sake of test notepad on winxp
I don't use NotePad (for many reasons, this is just one more). I always get my hands on NotePad++ as soon as possible on any Windows system I have to use.
So you may be right, but as you also note, Windows NotePad is not an example to follow.
Every other editor I can remember using on any platform (like many other types of applications) does it the way I also am requesting our NotePad to do.
Best regards,
Niels
Re: NotePad Save option
Posted: Wed Jul 31, 2013 7:28 pm
by nbache
kas1e wrote:It also good to make a save of your work: you type text, and then just press "amiga+s" and it saves, without needs to boring with asl-requester. i.e. fast and productive work.
The "correct" way would also not bother you with a file requester, just a "File exists. Overwrite? OK/Cancel" type of requester, which you can respond to with a key, and only the first time.
Best regards,
Niels
Re: NotePad Save option
Posted: Thu Aug 01, 2013 12:18 am
by chris
Shouldn't "Save" be ghosted out if the file hasn't been saved yet?
Re: NotePad Save option
Posted: Thu Aug 01, 2013 7:28 am
by nbache
chris wrote:Shouldn't "Save" be ghosted out if the file hasn't been saved yet?
That's not how I usually see it done in other, "mainstream", editors. If a new file hasn't been saved yet, and thus its name (seen on the tab or window border) is still "new 1", "Unnamed 1" or similar, they just treat Save like Save As.
Best regards,
Niels
Re: NotePad Save option
Posted: Thu Aug 01, 2013 9:08 am
by trixie
chris wrote:Shouldn't "Save" be ghosted out if the file hasn't been saved yet?
No, that would be an incorrect and confusing visual cue - it would suggest that the file cannot be saved.
nbache wrote:If a new file hasn't been saved yet, /.../, they just treat Save like Save As.
Exactly.
Re: NotePad Save option
Posted: Sun Aug 04, 2013 12:03 am
by xenic
nbache wrote:Ouch - you are absolutely right.
I have now made a BZ entry for this, and I definitely don't think you are over-precautious.
This is not the behaviour one would normally expect from a text editor.
As long as you're filing a report for NotePad, I would point out that are some Shell arguments like TOOLBAR and AUTOINDENT that do nothing.