I agree the current recall behavior is unintuitive, and often confusion,
especially when using the J session as a scratch pad.
When trying out different things, not paying too much attention to where
you do the edit, all edited commands and their outputs are inconsistent,
and thus useless. Of course, changing the default workflow will upset a lot
of people.

A solution that eg. wxMaxima[1] has gone for is putting output belonging to
changed commands in grey, marking the output as not corresponding with the
command above. Executing the command in place replaces this output in the
history with an updated version.
This forced update could for instance be another shortcut (eg. ctrl-enter),
without interfering with the "standard" way J's session works.

I can imagine there's a fair amount of code going into implementing this,
as it would mean keeping track of where which commands and their output are
put, but I think it would be a nice addition which defuses this recurrent
issue people seem to have with J.

Either way, I'm open for brainstorming about this.

A smaller thing which I would like when recalling stuff is that the cursor
position would be saved when using Enter on a previous line to pull it
down. A lot of times I automatically click where I want to edit a line,
after having it pulled down. This would save some mouse or cursor key work.

Also, I like the smart home key behavior (first going to the first
non-space character before skipping to the real home). Could it be extended
to also work when selecting stuff with shift-home?

Thanks,

Jan-Pieter

[1]: http://wxmaxima.sourceforge.net/

2015-01-26 7:01 GMT+01:00 Skip Cave <[email protected]>:

> In jqt on Win 8.1 I just go to the line in question and hit enter. That
> moves a copy of the line to the bottom of the session, but doesn't execute
> it. Then I can edit it, and then execute it by hitting enter on that line.
>
> Skip
> ----------------------------------------------------------------------
> 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