Bill Harris wrote:
>Just a thought: when I do File > Recent, I get a handy list of recent
>scripts. Unfortunately, most of the files I've stored in c:/documents
>and settings/...
Here's one way to solve the problem. Download:
http://www.jsoftware.com/svn/DanBron/trunk/environment/reduce_prefix.ijs
save it somewhere convenient, and load it in your startup script. Then, open
the file ~Extras\util\jijs.ijs and modify the two definitions recent_run
and recent_save thus:
recent_run=: 3 : 0
...
wrecent_run__a reduce_prefix_base_ :: ] RECENT NB. Line 643
...
)
recent_save=: 3 : 0
...
dat=. dat,LF,'RECENT' nounrep tolist jpath each RECENT NB. Line 672
...
)
then your recent files list will display tilde style names, like
"~Extras\util\jijs.ijs" instead of
"c:\blah\blah\blah\system\extras\util\jijs.ijs".
I'm assuming here that you're saving your J scripts somewhere under the J
directory, and when you say "c:/documents and settings/... " you mean all of J
is installed there. If that's not the case (e.g. J is installed in C:\j601\
but you're saving J scripts under "my documents"), just add a user folder.
To do that, go to Edit>Configure>Folders , enter a short name like "Home",
point it at your "c:/documents and settings/... " directory, and press "Add at
end". Then your files will show up in File>Recent like "~Home/blah.ijs".
Another benefit is it'll be more convenient to refer to your scripts; e.g. you
can then use load '~Home/blah.ijs' instead of load 'c:/documents and
settings/.../blah.ijs" .
Hope this helps,
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm