Hi Andrew, I never realized how much I rely on name completion until I tried helping my nephew on some of his course work in C++. I got him netbook and they were using RHIDE http://www.rhide.com/ and when I started using it ... I was a bit lost. I had to go to my computer and fire-up XCode and coded there.
What your doing is be of much use. r/Alex -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Andrew Nikitin Sent: Tuesday, August 17, 2010 4:21 AM To: J programming Subject: [Jprogramming] name completion I am trying to implement name completion for jwd. The one where you type incomplete name, then hit tab and it completes it with next good name from current directory. Except, instead filename from directory I want a name from locale. I have figured out that 'tab' key is out of the question, but, say, F4 would work equally well for me. So far I've got: leftword=:3 : 0 if. ''-:y do. y=.<,'0' end. >{:;: utf8 (ucp e__y){~(-(-i.)80) +{: _1".e_select__y ) liststarting=:3 : 0 y (({...@e. > )"_ 0 # ]) ;(3 : '<nl__y ''''')"> (,copath) coname '' ) pickrest=:3 : 0 try. (#y)}. ,> (((0{::]) # (1 {:: ]) { [) wdselect) liststarting y catch. end. ) Then if I go to Edit|Configure and enter the following code for F4 key (make it "quiet"): pickrest leftword '' then if I type wd and hit F4 it will show me all available names that start with wd. Now I need to put the rest of the selected word at the current cursor position. How do I do that? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm