From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3255 invoked by alias); 13 Oct 2014 12:27:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33460 Received: (qmail 3802 invoked from network); 13 Oct 2014 12:27:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1413202872; bh=ruPVB/0T+AWt+g2iamI1Z8LeMbBkbKzztEhHTi9Nk9E=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=tYTATGGfRGdCG+Rsgc1sEbosuBrc/MhlMyPVp+Dbsrv3l/46mW0i6r0WEYL9tjQWviFmJt387HUpMiN/M1QvR/8g+qP0AwLL1sNeqWZn8fLjo8hy5+BrP7MLm+pRlvMvDmIGqs3vWWuoFbV4p+a8002/c9ZeRyvtLU5Kubp5UWE= X-Yahoo-Newman-Id: 274638.62232.bm@smtp144.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1ellF0kVM1nAqpVmOX9UQZbPRunYbuCyU6XGBK7RNab.oRl wKczIKpv8JXcTIgL5aABa3yQHCdALqAyXnhHD2WOF2an49ONRI4R3ygLS8ZN DWCCTBnO6PQolxey5NMr4BrB4ew731bee8VCRrs9kCLuCbarP4tC6Jm3q616 f4PySCNAyyWJ8Z8PFaKDxptIozI03uv5EQU2nwjKamruoYzrFJ6TuG2lGp2Q lP6kpxWRGZ3Y6kMOSUmVKNXzFm6moGP1K.QZ1tbaqkWBXae4.l_.asxG22rI foYQbce38LxhbXUaj1o5Ml03W3Qoi_6Gf50lwJ_09BYuJRqN8cd6Ua5l5.dM Gc0MQ17av._1QY0s0qqLlaFRcXTfWvYakKFa8HTO8EvIdpMoPNq5aDzHAc7J zlel9hD_3z0b4vX7uEs8pu9fxXRlGZMK_sjX5fOq..3v.SmPL_bhQiqPeiHg 7m6HV1AXWsWgQQ_6J.zifGVsOKesLGVHxL6Ijv_9Q075KB6dgA1STPLCM3_p wzWxNfXdYZ8mwnpj1vEtEH7frXzw- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <141012134936.ZM4543@torch.brasslantern.com> From: Oliver Kiddle References: <141012134936.ZM4543@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: What exactly does it mean to complete inside $'...' anyway? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4933.1413202870.1@thecus.kiddle.eu> Date: Mon, 13 Oct 2014 14:21:10 +0200 Message-ID: <4934.1413202870@thecus.kiddle.eu> Bart wrote: > > % : $'x > > for any particular values of "x", which might be e.g. $'\07' or $'\M-x'. > Same goes for The intent of existing zsh functionality (aside from bugs) seems to be that quoting is ignored for the purposes of matching. So if you have $'\x41', it will look for a completion candidate (filename or whatever) that matches uppercase A. The x character forming part of the suffix rather than the prefix doesn't really make much difference other than the expected position of completed characters. For $'...' style quotes I'm not sure anything else would be especially useful: either filtering matches that would need special quoting or completing sequences like \M-x. When inserting a completion match, zsh seems to use the quoting style from the first character. The ideal would be to preserve existing quoting as far as possible. By default a \ is removed when completing directly after it which is especially useless. (I've largely worked around this my binding \ to a custom widget.) Oliver