[Jprogramming] Recalling and editing lines in jqt

Piet de Jong pietdion at gmail.com
Sun Jan 25 22:42:44 UTC 2015


IMHO I don’t think CTRL+D or CTRL+SHIFT+UP is perfect.
The former just shows the history of input without the corresponding output (often critical)
The latter doesn’t display the context of the command in its history or results.
I would much prefer the situation where one would arrow up and start editing.
When editing either the line could be automatically  pulled down or pulled down after an enter.
The history however should remain unaltered.

> On 26 Jan 2015, at 9:31 am, Tobia Conforto <tobia.conforto at gmail.com> wrote:
> 
> Ctrl+Shift+Up is perfect! Thank you.
> 
> I should have looked harder for a list of jqt shortcuts, which I'm sure is
> there somewhere :-/
> 
> Tobia
> 
> On Sun, Jan 25, 2015 at 11:26 PM, Joe Bogner <joebogner at gmail.com> wrote:
> 
>> Try Ctrl+D or Ctrl+Shift+Up
>> On Jan 25, 2015 5:23 PM, "Piet de Jong" <pietdion at gmail.com> wrote:
>> 
>>> I very much agree with this.
>>> The J way of doing this  is unintuitive and (according to me) the most
>>> irritable cosmetic aspect in J.
>>> If you space up, edit, and enter, then the displayed “history” is not an
>>> accurate.
>>> To maintain an accurate history one must space up, enter, edit, enter.
>>> This is clumsy.
>>> I recall  raising this issue in a post  quite a few years ago but to no
>>> avail.
>>> It would be easy to avoid the clumsiness and I urge J developers to make
>> a
>>> change.
>>> Other than that, J is great.   Thanks for all the development efforts.
>>> 
>>>> On 26 Jan 2015, at 9:09 am, Tobia Conforto <tobia.conforto at gmail.com>
>>> wrote:
>>>> 
>>>> The steps to recall and edit a line from the history in jqt are not
>> very
>>>> intuitive. The simplest sequence I could find is: 1. move to the line
>> you
>>>> wish to edit; 2. press enter to copy it to the bottom; 3. edit it; 4.
>>> press
>>>> enter to execute it.
>>>> 
>>>> This is different from both regular CLI terminals (press ↑ or ^P to
>>> recall
>>>> previous lines, edit, press enter to execute) and other "editable" CLI
>>>> interfaces, such as Dyalog.
>>>> 
>>>> In Dyalog you 1. move to the line you wish to edit; 2. edit it in
>> place;
>>> 3.
>>>> when you press enter to execute it, the original line is reverted to
>> its
>>>> original value, the new line is pasted at the bottom and executed.
>>>> 
>>>> Personally I much prefer the "read-only history + one editable line"
>>>> philosophy of regular terminals, but Dyalog's way of doing it is IMHO a
>>>> good compromise. It "looks" like it's allowing to edit the history, but
>>>> when you press enter, the old history is restored.
>>>> 
>>>> In jqt there's one more keypress and you risk corrupting your history
>> if
>>>> you are not very careful. Am I missing some key shortcuts or settings?
>>>> 
>>>> Tobia
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>> 
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list