It ain't complete (only finds complete words, not a list of incomplete words), but I did test it a bit.
It autocompletes on qw(one two three four five six seven).
It's entirely perl. I tested it on Solaris, and although I didn't test it on windows, it should work (i re-used code that i had tested on windows).
[~] perl -e 'use GetWord;$a=Get_Word();print"$a\n";'
Enter command > abc
your command was abc
[~] perl -e 'use GetWord;$a=Get_Word();print"$a\n";'
Enter command > o<tab>
->auto generated->one
[~] perl -e 'use GetWord;$a=Get_Word();print"$a\n";'
Enter command > tw<tab>
->auto generated->two
This is GetWord code (partly taken from the Get_Password CPAN module, and partly from the camel book).
I'm going to use readmore tags, but i'm never sure if it works, so if they don't, i apologize in advance.
|