#2 Script Completer problems

open
nobody
None
5
2003-11-06
2003-11-06
Scripter
No

I wonder if you could help me with a problem. I want to
add some extra commands to the ScriptCompleter. I
know I can do it by using the following command:
tclreadline::readline add <command>.

However, I want to be able to add numerous commands
which begin with the same words.
eg.
tclreadline::readline add "delete arm"
tclreadline::readline add "delete leg"

However, if I were to enter these commands, and I
press the tab key, only the first one which I enter will be
displayed (in this case "delete arm"). Does anyone know
of any work arounds to this problem?

Also, there was an issue of the "ls" command being run
when a user presses the tab key numerous times. Is
there a way to turn this off? The only workaround I have
found is to cd into an empty directory.

Thanks

Discussion


Log in to post a comment.