zsh-users
 help / color / mirror / code / Atom feed
From: Matt Wright <matt@sysctl.co.uk>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-users@zsh.org
Subject: Re: Zsh autocompletion with no access to a parent directory
Date: Thu, 29 Jul 2010 08:46:47 -0700	[thread overview]
Message-ID: <548B2AA0-8397-4292-A41B-156FDC42B886@sysctl.co.uk> (raw)
In-Reply-To: <20100430093251.4fcd8c45@csr.com>

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.

M

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

> On Thu, 29 Apr 2010 15:14:33 -0700
> Matt Wright <matt@sysctl.co.uk> 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>


  parent reply	other threads:[~2010-07-29 16:13 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 16:33 Matt Wright
2010-04-13 16:45 ` Peter Stephenson
2010-04-13 17:11   ` Matt Wright
2010-04-13 20:33   ` Matt Wright
2010-04-14  9:14     ` Peter Stephenson
2010-04-14  9:47       ` Peter Stephenson
2010-04-14 10:01         ` Peter Stephenson
2010-04-14 17:20           ` Matt Wright
2010-04-23 15:01         ` Matt Wright
2010-04-23 21:44           ` Peter Stephenson
2010-04-29 21:38             ` Peter Stephenson
2010-04-29 22:14               ` Matt Wright
2010-04-30  8:32                 ` Peter Stephenson
2010-04-30 16:05                   ` Matt Wright
2010-05-05  4:55                   ` Matt Wright
2010-05-05  9:58                     ` Peter Stephenson
2010-07-29 15:46                   ` Matt Wright [this message]
2010-08-03 12:59                     ` Peter Stephenson
2010-04-30 16:14               ` Bart Schaefer
2010-06-25 12:27 Yves Frederix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=548B2AA0-8397-4292-A41B-156FDC42B886@sysctl.co.uk \
    --to=matt@sysctl.co.uk \
    --cc=pws@csr.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).