Changing completion key

Michael Hudson mwh at python.net
Tue Oct 22 07:09:35 EDT 2002


"Dave Richards" <mr.random at gmx.net> writes:

> I recently discovered that idle and the python shell support name
> completion with the combination Alt+/. As I use a German keyboard, that
> means I have to press Alt+Shift+7 (/ is Shift+7), which is a little
> unwieldy for my tastes. Is it possible to change this combo? I had a look
> at the keydefs file in idle, but it's not in their. As far as I can see,
> it's in readline.so.

Um, I can't answer your question completely, but readline.so has
nothing to do with completion in idle.

If you're running python in a terminal

readline.parse_and_bind("tab: complete")

should do the obvious (once you've installed a completer).

I'm sure there's a way to do it in idle, but I don't know it.

Cheers,
M.

-- 
  Slim Shady is fed up with your shit, and he's going to kill you.
                         -- Eminem, "Public Service Announcement 2000"



More information about the Python-list mailing list