Speaking of things we miss from j602, I really liked the (edit) verb,
for inspecting definitions in context.

Here's the best I can currently approximate it in j804:

edit=:3 :0
   open (4!:3''){~4!:4<y
)

Example use:

   edit 'tsrep'

This example gives me system/main/stdlib.ijs in an editor window. What
it doesn't do is find anything that looks like the definition of tsrep
in that file.

And there's some justice for that - sometimes what looks like the
definition isn't really the definition. But I'd like to try. Maybe put
a user interface in front of it, if it seems ambiguous?

But I don't know how to move to a position within the opened file.

Looking at the definition of open:

3 : 'wd ''openj *'' , > {. getscripts_j_ y'

So it's a wd command. But google is useless, and I don't specifically
know where to go to find any relevant reference.

Looking through:

http://www.jsoftware.com/jwiki/Guides/Window%20Driver/ChildClasses
http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Command%20Reference
http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Parent
http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Window%20Controls
http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Window%20Driver%20Overview

finds me nothing on 'openj'.

I might be able to find something under http://jsoftware.com/websvn/
but that's a fairly hostile environment for searching. Still, spending
a few minutes there suggests that the c++ sources are no longer
visible to me.

At a guess, though, the code is currently not designed to support J
driving the behavior of the edit windows.

-- 
Raul


On Thu, Sep 10, 2015 at 2:16 PM, Dan Bron <[email protected]> wrote:
> Ian wrote:
> "Normal use" for me invariably means referring to sample code.
>> Especially when using addons, i.e. all the time.
>
>
> Funny what constitutes “normal use” for different people!
>
> I may have opened the Labs in my first few weeks of using J (was that 2001? 
> wow.), but I haven’t since.
>
> I don’t find the interactive/pagination workflow of Labs conducive for 
> reference material. It’s tutorial material. I believe the intended use case 
> for Labs is you go through any given Lab once or twice, but once you 
> internalize the lesson, you put it on the shelf.
>
> For reference material, i.e. “normal use” for me, I use the Dictionary, Wiki, 
> and Forum search tool, supplemented by  open’scriptname’  where needed 
> (though sadly we’re missing  edit’functioname’ from the good old days).
>
> -Dan
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to