Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Escaping of : in a _describe completion
- X-seq: zsh-users 14033
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: [PATCH] Escaping of : in a _describe completion
- Date: Sun, 12 Apr 2009 18:09:49 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=5EF3L6m7/HGbShH5rhC5yNud4jEYKCyCCOiPDUozXbU=; b=Ewx5JEuQnnOl4nUMEy9/ITxZlK7Ty82d5zQrxDvLB9kONCsq4AXUR8V1fDKwZG/Ixn vf1v4gORV+dYw5/R9TEF8YJZ3HB03dtA8GpMWhVZkS9/cMaD5cv5GaxRsdEZ/FDJpZuE cX3zZAlDE5kUavknHPvYbsr4h7VhyXeNdBX+o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=sA5MKR+yL1LCO8HLbMCkKbuHUbN4TjgU4tRPxJ5inTQEVn5T1iriK9dFRnffqBYmfB d2gcEspFRdDvk6ZM1QTdyzI5Ajy66F5Ar54g0wVM3oFD8TY6kUi2hkcf2+JENsA/5154 dlmiJLvfIvL8S4k1SdY+2ft4bBB9mYCXvGEOc=
- In-reply-to: <20090411092200.GD11551@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090411020319.GF4047@xxxxxxxxxxxxxxxxxxx> <200904111231.12449.arvidjaar@xxxxxxxxx> <20090411092200.GD11551@xxxxxxxxxxxxxxxxxxx>
On Saturday 11 of April 2009 13:22:00 Frank Blendinger wrote:
> Could I get my old behaviour somehow, with a menu of my etherwake
> completion showing up after the second <Tab>?
>
Please try if attached patch helps (and does not break something else).
I do not claim to understand how quoting is actually handled by
completion but at least compdescribe does remove backslashes and compadd
does not seem to.
I'd like to get final word from Peter before committing this. Also some
more clear statement in manual is needed.
Index: Completion/Base/Utility/_describe
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_describe,v
retrieving revision 1.16
diff -u -p -r1.16 _describe
--- Completion/Base/Utility/_describe 5 Jun 2003 09:51:33 -0000 1.16
+++ Completion/Base/Utility/_describe 12 Apr 2009 14:01:32 -0000
@@ -97,10 +97,10 @@ while _tags; do
if [[ -n $_mats ]]; then
compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \
- "${(@M)${(@P)_mats}##([^:\\]|\\?)##}"
+ "${(@)${(@M)${(@P)_mats}##([^:\\]|\\?)##}//\\}"
else
compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \
- "${(@M)${(@P)_strs}##([^:\\]|\\?)##}"
+ "${(@)${(@M)${(@P)_strs}##([^:\\]|\\?)##}//\\}"
fi
done
set - "$_argv[@]"
Attachment:
signature.asc
Description: This is a digitally signed message part.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author