Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _urls, _netscape, a seg fault and new completion thoughts



On Oct 13,  4:34pm, Oliver Kiddle wrote:
} Subject: Re: PATCH: _urls, _netscape, a seg fault and new completion thoug
}
} > > Is there a good reason why I don't get a list of matches when
} > > completing inside quotes? This is the general case not anything to do
} > > with completing urls etc. e.g. cd 'm<tab> will complete to 'man/ but
} > > if I added another directory beginning with m, nothing would happen - no
} > > list. 
} > Hm, this works for me -- unless you mean `cd man m<TAB>' which of
} > course shouldn't work.
} 
} I did mean as I said. It still doesn't work (3.1.6-pws-6 on AIX or 3.1.6
} on Linux).

Doesn't work for me either; not even the first bit that works for Oliver.
I get a listing if I ask for one with ^D, but not with TAB, and automenu
does not work if there's a quote on the line.  See:

zagzig[21] compinit
zagzig[22] cd l<TAB>      
lg/            lib/           linux@         linux-2.0.36/  local@
zagzig[23] cd 'l<TAB>
(nothing)

(I get those five completions because /usr/src is in $cdpath.)  Here's a
test that doesn't need cdpath:

zagzig[24] cd z<TAB>
z-code/   zanshin/  zscript/  zshfun/
zagzig[24] cd 'z<TAB>
(nothing)

Doesn't matter if the command is ls, cd, bindkey ... unambiguous prefixes
get inserted, but as soon as there's an ambiguity it all stops.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author