sgenoud / replicad

The library to build browser based 3D models with code.
https://replicad.xyz
MIT License
323 stars 38 forks source link

can't open existing model (.js) file #95

Open tve opened 10 months ago

tve commented 10 months ago

I'm using vivaldi and I have a very hard time opening an existing model file. I have an open tab showing some model. I click on the circular arrow button (that's really a refresh icon, not an "open file" icon!) and get to the file selection dialog. I open my existing .js file. What I get next is the viewer of that file/model but without code pane. I don't have a way to show the code pane. If I use the browser's refresh button I get the previously open model shown normally with a code pane and the preview pane.

sgenoud commented 10 months ago

The reason it is a refresh button is that it is not an open file button but read and refresh the view from the file on disk button (writing this makes it clear to me how unclear this functionality is).

Personally I do not use the online editor (my fingers know vim). I have created this functionality to use an external editor and autorefresh the view when I edit locally.

I should probably add a load in editor button (and find a way to express what this view code from local file button does).