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

Re: Zsh autocompletion with no access to a parent directory

Apologies for necroing this thread but I've hit a snag with this stuff and I can't work out whats going on. I threw some debug in around the code you changed in _path_files but all the paths look sane. After that it barrels off down compfiles code and my brain leapt out my left armpit.

If I do the following, using the _path_files changes you supplied me long ago:

# mkdir -p /tmp/foo\~bar/test
# ls /tmp/foo~bar/te<TAB>

All I get is:

[caesium: ~]$ ls /tmp/foo~bar/te
No matches found for: `files'

If I back up and TAB at the end of "foo~bar", zsh changes my prompt to:

[caesium: ~]$ ls /tmp/foo\~bar/ 

After which, it carries on completing properly. There's also a case I have at work where pressing tab in a setup like this appears to expand the ~ to \~ and then copy the entire completion path again. Though I don't appear to be able to replicate it right now I'll give you the gist below incase it rings any bells.

# command /var/tmp/foo~quack/usr/lib/local/foo<tab>

This becomes:

# command /var/tmp/foo\~quack//var/tmp/foo~quack/usr/lib/local/foo

And things get very confused.


On Apr 30, 2010, at 1:32 AM, Peter Stephenson wrote:

> On Thu, 29 Apr 2010 15:14:33 -0700
> Matt Wright <matt@xxxxxxxxxxxx> wrote:
>>> Matt, could you make sure this doesn't break anything?  Of course,
>>> with code this trivial it's hard to make a mistake.  Sob.
>> Tried to at work and git-apply hates the patch format. Not sure why.
>> Also patch -p0 wouldn't apply it cleanly to the current top-of-git.
> It should apply OK to what's in the archive (and does here), but I did
> change the previous patch from what I gave you before, so it would be
> problematic with anything not under revision control...
> Here's a patch against what was in the archive before I started tinkering
> with it so it should apply to something older, as well as the new
> patch.
> pws
> Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
> <path_files_against_old.dif><path_files_against_new.dif>

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