]load something.dyalog in a folder not listed in SALT?

SALT, SPICE, Subversion, etc...

]load something.dyalog in a folder not listed in SALT?

Postby askom on Wed Nov 26, 2014 11:17 pm

I like SALT and I love work with something.dyalog text files using git or bazaar and grep, vim, notepad.exe, whatever. It is really the great new (already not so new) opportunities to manage APL code. But…

For my lectures I have a very nested directory tree with nodes, like some machine learning method (e.g. Sammon protection). I want to keep in this “nuclear” subdirectory a bunch of sammon.pdf, sammon.md, sammon.tex, sammon.ppt, and,of course, sammon.dyalog. I dream, sitting in Dyalog, do
]cd path_to_this_directory
]load sammon.dyalog

And get namespace sammon in my active workspace.

What is the problem at all?

1. There are too many, mostly small (1,2,3, maybe 5 functions) something.dyalog, which I do not want put under version control.
2. I do not want clutter my SALT mentioned folders with all those files.
3. I want these *.dyalog files sit with together with many other files, not about Dyalog.

So, how to ]load any something.dyalog in a current directory, which is NOT listed in SALT setting?

Thanks a lot,
Sasha.
askom
 
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm

Re: ]load something.dyalog in a folder not listed in SALT?

Postby DanB|Dyalog on Fri Nov 28, 2014 11:24 am

SALT files can be loaded with a full or relative path.
For example
Code: Select all
   ]load \a\b\c

will load file "\a\b\c.dyalog" and
Code: Select all
   ]load other.xyz

will load file "other.xyz" found in the first folder listed when you do
Code: Select all
   ]settings workdir

If you have a folder where you frequently store your SALT files it might be best to do
Code: Select all
   ]settings workdir ,\my\favorite\folder  -permanent

to tell SALT where to look for SALT files from now on. Note the comma to add to the existing value, without it you'd be replacing the workdir setting instead.
You can also load files in the current folder by prepending a ".\" before as in
Code: Select all
   ]load .\from.here

or from the parent folder with "..\".
You can also use "[ws]\" to specify the same folder as your current workspace.
You may want to have a look at the document "Dyalog APL SALT Reference Guide.pdf" in your Dyalog installation help folder.
Cheers
DanB|Dyalog
 

Re: ]load something.dyalog in a folder not listed in SALT?

Postby askom on Tue Dec 02, 2014 1:24 am

Dan,

What I dreamed about was load from a current directory, not listed in SALT.
      ]load .\something

serves me very well.

Thank you very much.
And sorry if this is written in SALT manual.

Regards,
Sasha.
askom
 
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm


Return to Source Code Management

Who is online

Users browsing this forum: No registered users and 1 guest