Hi!

I'm not much advanced in scripting,
but finally done cycling tab-completion:
ftp://ftp.civo.aca.nsc.ru/
      users/qmax/patches/epic4/hienoa/completion.irc
(done as hienoa module, but could work separately if 
 to remove config_stuff)

Pressing tab substitute word under cursor with next match.
(head of word is prefix, tail of word is cycling)

It is supposed to be kinda context-dependant and cycles:
at start of line: last messaged nicks ( "/msg $nick" )
at first word of line: oncnannel nicks, ( "$nick: " )
at first word if it starts with cmdchar: commands or aliases
at word after command (command arg): 
variable names, assigned vars, channels, nicks or path

To make it possible to find matching commands and variables
i had to grep sources and list all possible matches in script.
To make it correctly determine type of command arg 
(egg after /window) i have to examine all sources 
and list command syntax in script.

Is there better solution ? 
Is it possible ?

-- 
qMax
_______________________________________________
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list

Reply via email to