[Jprogramming] name completion

2014-05-19 Thread Andrew Nikitin
Joe Bogner wrote: > Here's a hack for enabling tab name completion in jhs: Thanks, this is interesting hack. I had to use     var current = rows[rows.length-1].innerHTML.replace(/ | /g,'').trim(); in my browser, and i still want it to complete partial names in the middle of J sentence, but this

Re: [Jprogramming] name completion

2014-05-18 Thread chris burke
> > > - Original Message - > From: bill lam > To: programm...@jsoftware.com > Cc: > Sent: Friday, May 16, 2014 11:19:50 PM > Subject: Re: [Jprogramming] name completion > > ijconsole is not the official jconsole and it looks for libj.so.8.0.1 > under /usr/lib/

Re: [Jprogramming] name completion

2014-05-18 Thread 'Pascal Jasmin' via Programming
- Original Message - From: bill lam To: programm...@jsoftware.com Cc: Sent: Friday, May 16, 2014 11:19:50 PM Subject: Re: [Jprogramming] name completion ijconsole is not the official jconsole and it looks for libj.so.8.0.1 under /usr/lib/... I forgot the detail but I might compile it with linenoi

Re: [Jprogramming] name completion

2014-05-16 Thread bill lam
ijconsole is not the official jconsole and it looks for libj.so.8.0.1 under /usr/lib/... I forgot the detail but I might compile it with linenoise ( https://github.com/antirez/linenoise ) libjqt.so will look for libj.so, in your case, there should be some file unable to load, you may try strace op

Re: [Jprogramming] name completion

2014-05-16 Thread Joe Bogner
Here's a hack for enabling tab name completion in jhs: Paste this into your javascript console, and then start typing an identifier and hit tab for it to complete and then ENTER to get to the end of line. Future versions could cycle through options on tab or show a little inline popup to choose t

Re: [Jprogramming] name completion

2014-05-16 Thread Raul Miller
I ran jqt as a regular user. I had to use root, though, to install the qtide, and to inspect the operating system's view of the mapped files. In /usr/.ib/x86_64-linux-gnu/ I see: /usr/lib/x86_64-linux-gnu/libjqt.so /usr/lib/x86_64-linux-gnu/libj.so.8.0.1 I do not see the link libj.so. I can crea

Re: [Jprogramming] name completion

2014-05-16 Thread bill lam
Sorry for confusion, with reference to libreadline, I assumed your context was jconsole not jqt. Also linux jconsole might already swtiched to libedit to avoid GPL restriction. Thank you for correcting the package name for jlang. install'qtide' might not intatll binaries to the correct places for

Re: [Jprogramming] name completion

2014-05-16 Thread Raul Miller
That's an interesting question. I took a look at my windows installation of j64-801 and did not find any reference to libreadline. I think it was used in older jconsoles. So I went to a linux box and installed j64-801 (using the j801_amd64.deb). As root: apt-get install libqtcore4 libqtgui4 libq

Re: [Jprogramming] name completion

2014-05-16 Thread bill lam
I suspect J engine does not know the image address of libreadline that jconsole had loaded without some hacking. Whether 15!:0 will load the shared object into a different address or use the same image address, I don't know. Or was libreadline static linked? On 17.05.2014, at 1:00, Raul Miller

Re: [Jprogramming] name completion

2014-05-16 Thread Raul Miller
It might also be possible to do using 15!: and libreadline c api? I am not sure, I've not tried that so do not know what obstacles you would encounter? Thanks, -- Raul On Fri, May 16, 2014 at 10:26 AM, bill lam wrote: > Almost all sm cmd had been removed because qtide is now written in c++.

Re: [Jprogramming] name completion

2014-05-16 Thread bill lam
Almost all sm cmd had been removed because qtide is now written in c++. Hotkey binding are also hardcoded using c++ IIRC. Therefore I suspect name completion is doable but it needs to be done by working on qtide c++ source. On May 16, 2014 9:29 PM, "Andrew Nikitin" wrote: > In J602 wd environmen

[Jprogramming] name completion

2014-05-16 Thread Andrew Nikitin
In J602 wd environment I use name completion a lot ( http://www.jsoftware.com/jwiki/AndrewNikitin/namecomplete ) and got used to it quite a bit. It uses sm* family of verbs to extract partial name to the left of the cursor, look up matching names in current and path locales and complete it. Thi