Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

Add a -browse switch for Create and Import #573

Open bpbecker opened 10 months ago

bpbecker commented 10 months ago

]create ns -browse ]import ns -browse

could open a browse box (better yet, one implemented using HTMLRenderer if possible).

This could make it less cumbersome to enter long path names and also reduce the likelihood of inadvertently creating a mistyped path.

mbaas2 commented 10 months ago

Or maybe that could even happen automatically if no path was provided?

abrudz commented 10 months ago

I was thinking that as well, but if you only give one argument, then that's taken as the path, with the namespace defaulting to the current namespace, so we'd either need heuristics as to whether a lone argument is a namespace or filepath, or we could say that if NO arguments are given, we do the current namespace + browsing. We could of course also do any combination of these three options.

lstefano71 commented 10 months ago

I guess supporting RIDE would not be trivial.

abrudz commented 10 months ago

Well, really, it should be the other way around. RIDE should have a menu item to open a dir, then send the appropriate command to Link