From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9230 invoked by alias); 3 Nov 2017 12:24:03 -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: List-Unsubscribe: X-Seq: 41981 Received: (qmail 1341 invoked by uid 1010); 3 Nov 2017 12:24:03 -0000 X-Qmail-Scanner-Diagnostics: from mailout2.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(210.118.77.12):SA:0(-6.9/5.0):. Processed in 1.954045 secs); 03 Nov 2017 12:24:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171103122354euoutp02a7b8e307c0e3bc2fd9331f2f7b7cd5c6~zkuo95kDw2530325303euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509711834; bh=rPCUzlWcYeKz/rK7XB8vxNkH47yNn1e8GBS4BSl3s4g=; h=Date:From:To:Subject:In-reply-to:References:From; b=Aaq+wL17F3WAiO4xrVNceoH+IjVczad0lOGSo7Wd+DqbkR+OQipCos/hWMIkiTwVT Zdh8abVZCOwmVJC7S3+Q60AyFUvSEkAx9zwAZv99PsrfTtHJOdLiDA7unKHljnNf4Z /bIzzL6cAfPrWe5U7z0XDIkb6ha9VAphp0Q0x+Hc= X-AuditID: cbfec7ef-f79ee6d000003120-04-59fc5fd94178 Date: Fri, 03 Nov 2017 12:23:49 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Changing subword-range according to current completion context Message-id: <20171103122349.4bf81a1c@pwslap01u.europe.root.pri> In-reply-to: <87h8ubo9zp.fsf@wavexx.thregr.org> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLIsWRmVeSWpSXmKPExsWy7djP87o34/9EGvw9bGxxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4Mi68nspWcIat4ssk9QbGBaxdjJwcEgImEpM7lrJD2GISF+6t Z+ti5OIQEljGKHFzUjsThNPLJPHy7hwmmI69x44xwlW1rGyDapnGJHHrUytUy2lGicUvJzJD OGeAnJmX2UD6WQRUJT69nAY2i03AUGLqptmMILaIgLjE2bXnWboYOTiEBbwlTuxIBwnzCthL 7Li3hhnE5hTQl7j6YwmYzQ9i//0EdZK9xMwrZxgh6gUlfky+xwJiMwvoSGzb9pgdwpaX2Lzm Ldg9EgIL2CT23JjHBtHsIvF4ZTsjhC0s8er4FmhoyEhcntzNAmH3M0o86faFaJ7BKHH6zA6o ZmuJvtsXGSE28ElM2jadGeQBCQFeiY42IYgSD4kH129BzXGU2HO/A8wWEmhilDjSpzaBUWEW krtnIbl7FpK7FzAyr2IUSS0tzk1PLTbUK07MLS7NS9dLzs/dxAhMBKf/HX+/g/Fpc8ghRgEO RiUe3g0TfkcKsSaWFVfmHmKU4GBWEuENtfoTKcSbklhZlVqUH19UmpNafIhRmoNFSZzXNqot UkggPbEkNTs1tSC1CCbLxMEp1cAouWLuFMGXIU7ftR3rT/HsOlMWsUZ5Vq3dz1txusnPijyq X0rf/3ns/Yenszx/XrrOWn3y7+F3OquVRadYXmT/z2GZE2IhUav8+u7rJTaXW295F9uufPSK V9iIVX32sTcXQl8LOXmYrpqd8Hnq/JsqfIZ/RLd3PFcw6f4u/9K7nc1mz9yrvbyLlFiKMxIN tZiLihMBfEK2OgADAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t/xa7o34/9EGiw4L25xsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4Mi68nspWcIat4ssk9QbGBaxdjJwcEgImEnuPHWOEsMUkLtxb z9bFyMUhJLCEUeLv1GuMEM4MJolFK5czQTinGSVWH9sNlTnDKDF34i82kH4WAVWJTy+nMYHY bAKGElM3zQabKyIgLnF27XmWLkYODmEBb4kTO9JBwrwC9hI77q1hBrE5BfQlrv5Ywgwxs4VR YsvP6SwgCX6QxN9PTBD32UvMvHKGEaJZUOLH5HtgNcwCWhKbtzWxQtjyEpvXvAUbKiSgLnHj 7m72CYzCs5C0zELSMgtJywJG5lWMIqmlxbnpucVGesWJucWleel6yfm5mxiBwbzt2M8tOxi7 3gUfYhTgYFTi4eWY/DtSiDWxrLgy9xCjBAezkghvqNWfSCHelMTKqtSi/Pii0pzU4kOM0hws SuK8vXtWRwoJpCeWpGanphakFsFkmTg4pRoYF7/pfWdwVFpiLsOnPRp3P/J9CD+9vMf44Ytv 8gt+u+V3aqevYlyUtaSxe9GMyMZTKy/WZs5f3dW2+fTNYP41jNY9sT6/bTZkhoaYnGA96yA+ NyT45o3oZTPXvfn97axrOMPLDZVm1xPPxVU85wm4kq910OnYPwdGHbfefItb+ptP6Efm3irt VWIpzkg01GIuKk4EALd2Pz9iAgAA X-CMS-MailID: 20171103122353eucas1p28c1f5b1608c227e08fd969021649f901 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171103121014epcas2p1342033fa4eb58a6d7f61400c619d0b52 X-RootMTR: 20171103121014epcas2p1342033fa4eb58a6d7f61400c619d0b52 References: <87h8ubo9zp.fsf@wavexx.thregr.org> On Fri, 3 Nov 2017 12:52:10 +0100 Yuri D'Elia wrote: > I'd like to fine-tune the way words are interpreted according to the > completion context which was used to expand the word, not to the zle > context. > > Is it saved anywhere? Is it possible to correlate the two? Hmm, I'm not sure that completion even has a generic notion of words as such. Each completion just parses the command line, generally (but not necessarily) starting with a single command line word as entered so far --- in this case parsed according to shell rules by the lexical analyser, this is hard-wired because it's extremely complicated --- and then takes it from there. I can't think of a point where it matches neatly onto a single interface that tells you the bits of what you're looking at. Did you have an example? pws