[IPython-dev] tab completion w/ spaces in filename - still broken

Ville Vainio vivainio at kolumbus.fi
Wed Jun 30 13:53:41 CDT 2004


Fernando Perez wrote:

> Ville Vainio wrote:
>
>> BTW, is tab completion supposed to work for files with spaces in 
>> their name? Completing a spaced file leaves the spaces as such in the 
>> file name (i.e. they are not escaped, quoted or anything), so that 
>> pressing tab a second time gives the list of all files, i.e. it 
>> doesn't consider what is already typed/completed. Adding backslashes 
>> manually to escape the spaces doesn't help.
>
>
> Fixed, I'll put it in CVS in a minute.

The current version still doesn't work, albeit it malfunctions differently:


root at axp[~]|2> touch "a b c"
root at axp[~]|3> touch "a c d"
root at axp[~]|4> a
a\ b\ c  a\ c\ d
root at axp[~]|4> a\ b
b2m                          bonobo-text-plain
b2m.xemacs21                 bootlogd
badblocks                    browsercaps-updater
base-config                  brushtopbm
basename                     bsd-write
... (long list snipped) ...

Apparently space is a delimiter for readline even when escaped with \. 
Fix for this possibly won't be as easy...




More information about the IPython-dev mailing list