zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: Brace completion and spaces
Date: Fri, 16 May 2008 14:42:35 +0200	[thread overview]
Message-ID: <237967ef0805160542l17897f78gc6e5db34e1683232@mail.gmail.com> (raw)

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


                 reply	other threads:[~2008-05-16 12:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=237967ef0805160542l17897f78gc6e5db34e1683232@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /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).