NotePad Save option

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
Amigo1
Posts: 221
Joined: Sun Jan 01, 2012 3:32 pm

NotePad Save option

Post 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... :,-(
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: NotePad Save option

Post 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
kas1e
Beta Tester
Beta Tester
Posts: 543
Joined: Sat Jun 18, 2011 8:56 am
Contact:

Re: NotePad Save option

Post 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 ..
User avatar
Amigo1
Posts: 221
Joined: Sun Jan 01, 2012 3:32 pm

Re: NotePad Save option

Post 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) :-)
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: NotePad Save option

Post 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
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: NotePad Save option

Post 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
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: NotePad Save option

Post by chris »

Shouldn't "Save" be ghosted out if the file hasn't been saved yet?
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: NotePad Save option

Post 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
User avatar
trixie
Posts: 411
Joined: Thu Jun 30, 2011 3:54 pm
Location: Czech Republic

Re: NotePad Save option

Post 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.
The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 1:06 am

Re: NotePad Save option

Post 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.
AmigaOne X1000 with 2GB memory - OS4.1 FE
Post Reply