Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with fake-files style and cd
- X-seq: zsh-users 13860
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Problem with fake-files style and cd
- Date: Sat, 14 Feb 2009 20:59:19 -0800
- In-reply-to: <237967ef0902141828i2a8c190ch2c94971863385212@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <mikachu@xxxxxxxxx>	<237967ef0902140622s7389d2c8h5a0c786dcf207422@xxxxxxxxxxxxxx>	<200902141801.n1EI1E2l003603@xxxxxxxxxxxxxxxxxxx>	<237967ef0902141019t30118690m30116c9413015d96@xxxxxxxxxxxxxx>	<090214111316.ZM15188@xxxxxxxxxxxxxxxxxxxxxx>	<237967ef0902141141y609b61d3i154546f6f6886c65@xxxxxxxxxxxxxx>	<090214133904.ZM15383@xxxxxxxxxxxxxxxxxxxxxx>	<237967ef0902141409o3a0c30a1mfbae985453403342@xxxxxxxxxxxxxx>	<090214152621.ZM15489@xxxxxxxxxxxxxxxxxxxxxx>	<237967ef0902141535j532bc256i5d0e08275fc9e164@xxxxxxxxxxxxxx>	<237967ef0902141828i2a8c190ch2c94971863385212@xxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author