zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Schmidhauser <oli@glow.li>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-users@zsh.org
Subject: Re: _mpc breaks when folder contains spaces
Date: Tue, 22 Aug 2017 19:49:53 +0200	[thread overview]
Message-ID: <20170822174953.GA18481@localhost> (raw)
In-Reply-To: <29908.1503417477@thecus.kiddle.eu>

On Tue, Aug 22, 2017 at 05:57:57PM +0200, Oliver Kiddle wrote:
> It looks like you forgot to include the attachment.
Yeah, I seem to have forgot to attach it. Here it is. But yours is probably way better. Thanks for looking into this.

--- _mpc.old	2017-08-22 11:31:01.336095638 +0200
+++ _mpc	2017-08-22 11:31:07.226095636 +0200
@@ -147,7 +147,7 @@
     list=( ${${(f)"$(mpc listall)"}%%/*})
     _wanted files expl file compadd -qS/ -a list
   else
-    list=(${(f)"$(mpc tab $words[CURRENT])"})
+    list=(${(f)"$(mpc tab ${words[CURRENT]//\ / })"})
     _wanted files expl file _multi_parts / list
   fi
 }


      reply	other threads:[~2017-08-22 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22 11:12 Oliver Schmidhauser
2017-08-22 15:57 ` Oliver Kiddle
2017-08-22 17:49   ` Oliver Schmidhauser [this message]

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=20170822174953.GA18481@localhost \
    --to=oli@glow.li \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-users@zsh.org \
    /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).