ride icon indicating copy to clipboard operation
ride copied to clipboard

New feature: File->Open to load a workspace

Open jayfoad opened this issue 8 years ago • 6 comments

Users of APL on the Mac (where RIDE is the default UI) expect to have a menu item to load a new workspace.

This probably needs a new protocol message to tell the interpreter to load the workspace.

It's OK if this is only available when RIDE and APL are running on the same machine, and/or only when RIDE has spawned the interpreter.

jayfoad avatar Aug 01 '17 12:08 jayfoad

I've just re-discovered that RIDE already supports drag-n-dropping a workspace onto the RIDE window, when the interpreter is running locally. See the code at the end of init.js. But that works by injecting ")load xxx.dws" into the session, which is a bit naff.

jayfoad avatar Oct 06 '17 10:10 jayfoad

I've raised Mantis 15083 to define new protocol messages and support them in the interpreter.

jayfoad avatar Oct 11 '17 10:10 jayfoad

Added the menu option, but it uses the same technique as the drag-n-drop. Once the protocol has been updated we can revisit this.

e9gille avatar Oct 17 '17 12:10 e9gille

Cool. It's a bit nasty that the menu option is present but does nothing when connected to a remote interpreter.

jayfoad avatar Oct 17 '17 12:10 jayfoad

"But that works by injecting ")load xxx.dws" into the session, which is a bit naff."

I disagree. That is exactly how it should be. And it should print "}XLOAD" to the session rather than ")LOAD"

To me the modal dialog box looks naff

aplteam avatar May 17 '21 16:05 aplteam

Also, anything printed to the session can be modified before actually executing it, for example ")load" can become ")copy"

aplteam avatar May 18 '21 12:05 aplteam