Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with fake-files style and cd
- X-seq: zsh-users 13861
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Problem with fake-files style and cd
- Date: Sun, 15 Feb 2009 10:36:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=vO5yzpO97kpzWNwVOQGITnFTHOrwqvUvJtrL++hL5o4=; b=UAvztSj3Ra3NGlSmX06qJ35CqTASn7UyrYmonrDwE488NnyNwBZLSOIR4dGHn9fBhb dcdoAbtwWVjHPSZM7Vlr3UhFKMp1S4FfPD5DfN1Nlg1aJHTIruuES6JhnhmvmDtBZGTy iRsYzijBzcBt1NRNy4lLDXITh8JYHO6hfmsJg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=SX4QRfP21WWJ+fJMdFfX4qCKvmyE/VnvKVs1W63XWmd2CksqGN+m8YrT98LaTIIDVE ZfbQkE3JZSDI8qjR7y+eBwiKLani1wgOXPmDhhDLTPxEYzXZmAyHQTBD4lQK4FHayo5G EGkTOkB4q4inpGNSydJf4BVEZXCpojHafiF+k=
- In-reply-to: <090214205919.ZM15679@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <mikachu@xxxxxxxxx> <237967ef0902141019t30118690m30116c9413015d96@xxxxxxxxxxxxxx> <090214111316.ZM15188@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0902141141y609b61d3i154546f6f6886c65@xxxxxxxxxxxxxx> <090214133904.ZM15383@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0902141409o3a0c30a1mfbae985453403342@xxxxxxxxxxxxxx> <090214152621.ZM15489@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0902141535j532bc256i5d0e08275fc9e164@xxxxxxxxxxxxxx> <237967ef0902141828i2a8c190ch2c94971863385212@xxxxxxxxxxxxxx> <090214205919.ZM15679@xxxxxxxxxxxxxxxxxxxxxx>
2009/2/15 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>:
> On Feb 15, 3:28am, Mikael Magnusson wrote:
> } Subject: Re: Problem with fake-files style and cd
> }
> } Okay, it happened now,
> } % mkdir -p {local,path}/{'path with spaces',pathwithoutspaces}
> } % cd local
> } % cd path<tab>
> } ---- local directory
> } pathwithoutspaces/ path\ with\ spaces/
> } ---- directory in cdpath
> } path\ with\ spaces/
> }
> } I tried putting some "" in various constellations in our zstyle to no
> } avail. Any ideas?
>
> That probably should be considered a bug. The ignored-patterns ought
> to be getting compared to the original completions, not to the quoted
> form that's going to be inserted onto the command line.
>
> The workaround is this:
>
> zstyle -e :completion::complete:cd::path-directories ignored-patterns \
> 'reply=( ${PREFIX}*(-/:q) )'
>
> I don't promise that'll catch all possible cases of odd characters in
> file names, but it should get most of the common ones.
Aha, thanks again :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author