Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _mpc breaks when folder contains spaces
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
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author