cmd, readline, and /path/filename completion

Dave Cinege dcinege at psychosis.com
Wed Jul 24 16:27:04 EDT 2002


On Wednesday 24 July 2002 8:00, holger krekel wrote:

> More exactly, the OP needs to erase the '/' character from the delims list.
> e.g.
>
> readline.set_completer_delims(' \t\n`~!@#$%^&*()-=+[{]}\\|;:\'",<>?')

Yes! Thank you. Though I don't understand why this works...at least
I have some idea where to look in the readline docs. I began going through 
them last night but didn't get much out of them. : P

> should work the way you want it.
>
> Are you implementing your own completion handler?

I don't know if I going to need to. As I said I'm toying with this now. 

One thing still 'broken' is it will not complete against executables, in the 
curdir or path. Can you comment on doing this?

It does currently complete against builtin's, IE  def do_XXXX(self,line):
methods.

Dave

-- 
The time is now 22:48 (Totalitarian)  -  http://www.ccops.org/





More information about the Python-list mailing list