fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.93k stars 284 forks source link

[Feature request] Creating new notebook in new directory #2708

Open hungpham3112 opened 9 months ago

hungpham3112 commented 9 months ago

Today I open new notebook then want to save them in new directory but Pluto says: image

I know I should create new folder before adding new notebook to them but it will more convenience for saving notebook immediately in this way.

mgkuhn commented 9 months ago

It would seem risky to quietly auto-create directories that didn't exist previously, because this will often mean that a mistyped existing directory gets converted into a real directory. I think the existing behaviour is useful, and also common practice with pretty much any other application I know. Or at least there ought to be a manual confirmation before any directories are created automatically. And if you support directory creation, you must also support directory deletion, such that users can undo accidental creations.

See also #1080

mgkuhn commented 9 months ago

Pluto's notebook renaming field could in theory be extended into a more full-featured file-selection box, like those offered by various GUI widget sets, which, among other things, allow the user from within the file-selection GUI pop-up to create (and delete) folders. This could be useful in hosted Pluto server situations where the user doesn't have direct access to the file system, and can interact with it only through Pluto.