[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extensible tab-completion?



Are there any objections/suggestions to providing an interface for
scripts and plugins to extend the tab-completion in their own ways?

One such interface may be a new signal, emitted when the user hits the
key binded to the "Complete nick/command" action. Handlers could be
passed the full content of the input line with the current position of
the cursor within that line, along with a list of so-far results to
which they are allowed to append/remove/etc. results.

This would allow, for example, a script to add file name completion to
the `<file>' argument of /DCC SEND. Or another script which maintains
an internal list of channel bans to auto-complete for the parameters
of /UNBAN.

--
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/