J804 has many commands for working with term and edit windows.  See

http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Session%20Manager

Henry Rich

On 9/10/2015 2:37 PM, Raul Miller wrote:
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.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to