Yes, the tab behavior is readline at work, a tab indicates a request 
to finish a file name - e.g. Typing the following (in any version of 
J in Linux console)

    fread 'My comp[TAB]

results in:

    fread 'My complicated file~name

(a name I made up to show this off) - I find this little trick very 
useful. It is a tiny bit inconvenient that the ful name is followed 
by a blank, so a backspace is required to form the correct string for 
fread... The space makes more sense when used on the Linux command 
line where the space is almost always appropriate after a name.

On the command line -

jkt@set1:~$ rm My[TAB]

     results in

jkt@set1:~$ rm My\ complicated\ file~name

very handy for housekeeping. I more than one name qualifies, a signal 
is sent and if you hit a second tab, then all the possibilities are 
listed (this is also true inside a j session) - this is where your 
list is coming from when you hit 2 tabs.

I really like the history file, the up/down arrows and nae 
completion, etc. - the main reasons I've always preferred jconsole 
over an IDE.

- joey


At 10:59 PM -0400 11/04/26, Raul Miller wrote:
>On Tue, Apr 26, 2011 at 10:13 PM, David Ward Lambert
><[email protected]> wrote:
>>  2 consecutive tab characters cause jconsole to list my directory.
>>  They can be in a comment, a string, or simply two tabs followed by enter
>>  key.  I am a fan of the whitespace language...
>>
>>  $ jconsole
>>    JVERSION
>>  Engine: j701/2011-01-10/11:25
>>  Library: 7.01.048
>>  Platform: Linux 64
>>  Installer: j701a_linux64.sh
>>  InstallPath: /usr/local/j64-701
>
>I think jconsole is using gnu readline.
>
>You should be able to change this behavior (which I think is its default).
>
>http://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC9
>
>J7 should probably be distributed with a initialization file, for readline.
>
>--
>Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to