elan-language / LanguageAndIDE

Apache License 2.0
3 stars 0 forks source link

Review Saving of files #682

Closed stirlingstout closed 1 month ago

stirlingstout commented 1 month ago

I've been saving a file multiple times and changing the filename on the Windows dialog that appears after you save the download. This filename change isn't reflected in the IDE title bar. I realise it is probably impossible to get at the filesystem filename, and that you need to change it in the Javascript input box, but it might be worth pointing this out in the manual.

richardpawson commented 1 month ago

When you Save a program, specifying a new file name myCode.elan, then having saved it you will see Program: myCode.elan in the title above the code editor pane, and if you then save it again you will get myCode.elan in the dialog box.

Maybe you need to include a screenshot?

(You are using Chrome, I assume?)

stirlingstout commented 1 month ago

When you save you firstly get asked by the Elan what filename to use. If you change it there then the behaviour is correct, but if you forget, then change the filename in the File Save dialog, the change doesn't get reflected in the IDE.

As I say I'd guess that's it's not possible to get hold of the second filename, and you haven't lost anything, but if you think you've renamed it, say at the end of a lesson, then coming back you might load the wrong one and think something's wrong and Elan has lost your work.

I think it's something for the manual.

John

On Mon, 5 Aug 2024, 16:35 Richard Pawson, @.***> wrote:

I don't understand what you are saying. If when you Save a program, specifying a new file name myCode.elan, then having saved it you will see Program: myCode.elan in the title above the code editor pane, and if you then save it again you will get myCode.elan in the dialog box.

— Reply to this email directly, view it on GitHub https://github.com/elan-language/LanguageAndIDE/issues/682#issuecomment-2269361561, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQQAB522ZLVO3DS7PRUHB3ZP6LVLAVCNFSM6AAAAABMALZJ66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZGM3DCNJWGE . You are receiving this because you authored the thread.Message ID: @.***>

richardpawson commented 1 month ago

It transpires that this is down to whether you have the second option down set or not:

image

If you have that set, you get a second dialog, but Elan does not (and almost certainly cannot) know that you have changed the filename.

A possible change:

1) When you click New you must specify an initial name for the file. This will then be used as the default name in the (operating system) Save dialog, just as if you had loaded the file in the first place. This would reduce (not eliminate) the need for altering the file name in the dialog.

2) Eliminate the (Elan) dialog on Save & encourage in the manual the setting of the option (per above)

3) When Saving is complete, could perhaps add a prompt to re-load (if you changed the filename).

richardpawson commented 1 month ago

Absorbed into #686