On further reflection, I think that it could be simplier for your case in
that you might not need to rewrite the whole buffer. Please browse the
source for that implementing search & replace in J ide.

Втр, 17 Авг 2010, bill lam писал(а):
> You may start with the following:
> smselact_jijs_''
> pos=. {. smgetsel_jijs_''
> txt8=. 8&u: txt=. smread_jijs_''
> ln=. 0 >. +/ LF = pos {. txt
> NB. some changes to txt8 eg, name completion
> smwrite_jijs_ txt8
> smscroll_jijs_ ln
> smsetselect_jijs_ (pos+0,0),1
> smfocus_jijs_''
> 
> Basically, smselact will select the active window in jwd,
> smgetsl get the byte offset of cursor
> smread get the buffer context
> ln is the line number of the cursor line
> after modifying the buffer and write the new content to the window
> smcroll to scroll to the original cursor line
> smsetselect to position the cursor
> smfocus to make that window the active window again.
> 
> Пнд, 16 Авг 2010, Andrew Nikitin писал(а):
> [---=| Quote block shrunk by t-prot: 27 lines snipped |=---]
> >  
> > 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?
> 
> 
> -- 
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> 


-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to