Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Brace completion and spaces
- X-seq: zsh-workers 25053
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Brace completion and spaces
- Date: Fri, 16 May 2008 14:42:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=QmqzM1j+SKe4ZcXLtfhcQT1J5oOcuFPdwJDPCwcZUFo=; b=q1DGsaX4KPhpSLAvIJnuFD7zQRL1P/9WzATghrqxJIuIfrDrrJ/yIN5T1YjUXUXFY4bDiWEJ6/+51qN+ASXX84g2+qBbYuUOEDa8RVsmPDBoN84I+PYOaIVw2eZ3HicaeQBCXugdxpG9G37bA6OWJ7jdqnOOtWohY33rUjViS+o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=D+HHaSH2jmEP/vuyGJEmBbQ4K54vpOS4X0tRGZw4MSoEoYm/YmmoNi5IKV/dXhI1pRMAqrvOh9bZjsK76sNTQzTUXjvqkMSaMoncYGIVqvJuWYBo4aYX80/MITwAMYBe27AShzYLK9S7c0kWBpgX2zUvMwpThK3DSMWBwrKcp08=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I'm having some trouble with tabcompleting in constructs like
foo/{bar,<tab> when foo and/or bar and/or the element to complete
contains spaces. This is especially common when trying to play two or
three mp3 files from an album. I usually resort to foo/{01,03,05}*.mp3
or so.
This works fine:
zsh -f
autoload compinit
compinit -C #the -C just inhibits overwriting my .zcompdump
mkdir abc
touch abc/{abc,def}
ls abc/{abc,<tab>
this lets me complete both abc/abc and abc/def.
This however:
zsh -f
autoload compinit
compinit -C
mkdir a\ b\ c
touch a\ b\ c/{a\ b\ c,d\ e\ f}
ls a\ b\ c/{<tab> #this changes the input to "ls a\ b\ {c/", subsequent
#tabs then move the { left until it says "ls a\{ b\ c/"
ls a\ b\ c/{a\ b\ c,<tab> #this produces no matches and just beeps
ls a\ b\ c/{a<tab> #this successfully completes to "a\ b\ c/{a\ b\ c,"
Further experimenting shows that the problem only seems to happen when
the dir contains spaces, it doesn't matter if the files inside do.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author