Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: making `cd` work unquoted
- X-seq: zsh-users 14291
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: making `cd` work unquoted
- Date: Thu, 06 Aug 2009 14:07:22 -0400
- In-reply-to: <20090805124757.6a8ca66b@xxxxxxxxx> (spiralofhope@xxxxxxxxx's message of "Wed, 5 Aug 2009 12:47:57 -0700")
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090725091008.7af5b873@xxxxxxxxx> <090725111722.ZM23913@xxxxxxxxxxxxxxxxxxxxxx> <chaz20090726110349.GA5452@xxxxxxxxxxx> <20090805074009.3074ba93@xxxxxxxxx> <CCB88E77-6F5E-4058-8077-0FA1E06727EB@xxxxxxxxxxx> <20090805124757.6a8ca66b@xxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> spiralofhope <spiralofhope@xxxxxxxxx> writes:
> bindkey -s '^X' '^@^[[1;5C^A\ef\e" ^@'
> .. which does:
> audacious /some/path/~ music file ~.mp3
> =>
> audacious '/some/path/~ music file ~.mp3'
I just don't see that I'd ever use such a thing; I would never type all
those path components without using completion. Especially having set
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' '+ l:|=* r:|=*'
I'd only have typed a few chars per component, and would have ended up
with a path I know actually exists.
Tab completion even works inside a quote, if your issue is the ugly
backslash-escaping of spaces, etc. For example, to get:
ls "/music/mp3/cd/Dylan, Bob/Blood On The Tracks/02 - Simple Twist Of Fate.mp3"
I might have typed:
ls "/mu<tab>3<tab>c<tab>dy<tab>tra<tab>twi<tab>
greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author