elan-language / LanguageAndIDE

Apache License 2.0
3 stars 1 forks source link

Loading appears to 'remember' directory, opening a file doesn't #836

Closed stirlingstout closed 5 days ago

stirlingstout commented 3 weeks ago

If I have saved an Elan program in a directory, then go to load it, the directory where I saved it is the default in the Open dialog. If I load again then the same default is used.

When I open a file for reading, then open another file, the directory I've navigated to for the first file isn't the default for the second Open dialog, so I may have to navigate the filesystem again to find it. The default seems always to be My Documents.

I realise, having done some research, that all the file input/output is hedged around with security concerns and hence restrictions, but I'm worried that always showing a dialog when a student does a file open (whether for reading or writing) is going to be another 'problem' for teachers, and anything that we can do to alleviate this would help Elan take-up.

I did have a thought about an emulated filesystem where a single file could keep track of multiple files. You'd still have to select the file system file though, both for reading and writing that file.

richardpawson commented 3 weeks ago

We really have very little control over this process - it is managed by the browser.

I also think that school-level use of data files is generally quite simple - in a single session you are likely to be dealing with one file only, typically.

stirlingstout commented 3 weeks ago

I'm curious as to why the Load 'remembers' and the file open doesn't. Presumably it's much the same Javascript code.

All the best.

John

Sent from (one of): one of my Raspberry Pi computers the Android phone or tablet the Windows desktop one of the Windows laptops/notebooks/tablets one of the Macbook Airs the iPad Pro, the LG TV, or the new iMac (mid-2014)!

On Fri, 8 Nov 2024 at 11:36, Richard Pawson @.***> wrote:

We really have very little control over this process - it is managed by the browser.

I also think that school-level use of data files is generally quite simple

  • in a single session you are likely to be dealing with one file only, typically.

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

richardpawson commented 5 days ago

Fixed as part of #841