From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18139 invoked by alias); 9 Jan 2016 11:03:49 -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: 37518 Received: (qmail 24046 invoked from network); 9 Jan 2016 11:03:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Jbw3llUf8NSsjJagRJv1Crh0Pje2j2ZQR9E0JWT3or4=; b=cSpaKT8Q8efL+sjBwODxu7XtYSuJzvCF7EW/fbHdKNCSs47AK9RvdBiuEaKOACnH/T 2kfQQumph7XgR6rqD3btRBHZeAkinn7dbhrUgfuCujlslrBzSZ5biEDVl2plGARz8FRl V7S55GPl3VHpBJu+ZdeYhNiuch+XEWal2ofH2688X86fkfzVDj2wg6c/yCqCsvCDJu4r eTnA7Tpyxc9PSqg3r2sZbAupIdrzFTM5/VaOPahJX5gKK1EIin2CsqLPfKjFmk6MbYDc WUiBJ+ml3KuQbJ1P7zRN071SCe1/PRvcF0z/+m9Sty75SO1MBSYsytDGxOGEOaD/uRyd cVyA== X-Received: by 10.25.7.10 with SMTP id 10mr34039745lfh.107.1452337423391; Sat, 09 Jan 2016 03:03:43 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sat, 9 Jan 2016 12:03:23 +0100 Message-ID: Subject: New widget "transpose-segments" To: Zsh hackers list Content-Type: multipart/mixed; boundary=001a113ea422373b370528e4a810 --001a113ea422373b370528e4a810 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello I've attached a new widget "transpose-segments". Works like "transpose-words", but the "words" are what I call "segments" =E2=80=93 par= ts of a command obtained by (z) flag. This allows to comfortably swap arbitrarily quoted things at prompt, http://asciinema.org/a/5tkda9lr7dju4lh3vt5sj35wi Can this be commited? Best regards, Sebastian Gniazdowski --001a113ea422373b370528e4a810 Content-Type: text/plain; charset=US-ASCII; name="transpose-segments.diff" Content-Disposition: attachment; filename="transpose-segments.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ij7058me0 ZGlmZiAtLWdpdCBhL0Z1bmN0aW9ucy9abGUvdHJhbnNwb3NlLXNlZ21lbnRzIGIvRnVuY3Rpb25z L1psZS90cmFuc3Bvc2Utc2VnbWVudHMKbmV3IGZpbGUgbW9kZSAxMDA2NDQKaW5kZXggMDAwMDAw MC4uMzEzZmViZgotLS0gL2Rldi9udWxsCisrKyBiL0Z1bmN0aW9ucy9abGUvdHJhbnNwb3NlLXNl Z21lbnRzCkBAIC0wLDAgKzEsODIgQEAKKyMgVHJhbnNwb3NlIHNlZ21lbnRzLCBpLmUuIHBhcnRz IG9mIGxpbmUgb2J0YWluZWQgYnkgKHopIGZsYWcsIGkuZS4KKyMgYXMgaWYgenNoIHBhcnNlZCB0 aGUgbGluZS4KKyMKKyMgQ29kZSB0byBhY3RpdmF0ZSB0aGUgZnVuY3Rpb25hbGl0eSB3aXRoIEFs dC10OgorIyBhdXRvbG9hZCB0cmFuc3Bvc2Utc2VnbWVudHMKKyMgemxlIC1OIHRyYW5zcG9zZS1z ZWdtZW50cworIyBiaW5ka2V5ICJeW3QiIHRyYW5zcG9zZS1zZWdtZW50cworCitsb2NhbCBjdXJj b250ZXh0PSI6emxlOiRXSURHRVQiIHNraXAKK2xvY2FsIE1BVENIIE1CRUdJTiBNRU5ECisKKyMg V2lsbCByZW1lbWJlciB3aGl0ZSBzcGFjZXMgYmVmb3JlIGVhY2ggc2VnbWVudAordHlwZXNldCAt YSBzcGFjZXMKK3NwYWNlcz0oKQorCisjIFdvcmtpbmcgdmFyaWFibG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bGVjdGVkX3Nl Z21lbnQtMV0iCitidWZhcnJbc2VsZWN0ZWRfc2VnbWVudC0xXT0iJHRtcCIKKworIyBCdWlsZCBC VUZGRVIKK2ludGVnZXIgY3VyYmtwPSIkQ1VSU09SIgorQlVGRkVSPSIiCitmb3IgKCggaT0xOyBp PD1zaXplOyBpKysgKSk7IGRvCisgICAgQlVGRkVSKz0iJHNwYWNlc1tpXSRidWZhcnJbaV0iCitk b25lCitDVVJTT1I9IiRjdXJia3AiCisKKyMgQXBwZW5kIGZpbmFsIHdoaXRlIHNwYWNlcworQlVG RkVSKz0iJHNwYWNlc1tpXSIKKworcmV0dXJuIDAK --001a113ea422373b370528e4a810 Content-Type: application/octet-stream; name=transpose-segments Content-Disposition: attachment; filename=transpose-segments Content-Transfer-Encoding: base64 X-Attachment-Id: f_ij705zzv1 IyBUcmFuc3Bvc2Ugc2VnbWVudHMsIGkuZS4gcGFydHMgb2YgbGluZSBvYnRhaW5lZCBieSAoeikg ZmxhZywgaS5lLgojIGFzIGlmIHpzaCBwYXJzZWQgdGhlIGxpbmUuCiMKIyBDb2RlIHRvIGFjdGl2 YXRlIHRoZSBmdW5jdGlvbmFsaXR5IHdpdGggQWx0LXQ6CiMgYXV0b2xvYWQgdHJhbnNwb3NlLXNl Z21lbnRzCiMgemxlIC1OIHRyYW5zcG9zZS1zZWdtZW50cwojIGJpbmRrZXkgIl5bdCIgdHJhbnNw b3NlLXNlZ21lbnRzCgpsb2NhbCBjdXJjb250ZXh0PSI6emxlOiRXSURHRVQiIHNraXAKbG9jYWwg TUFUQ0ggTUJFR0lOIE1FTkQKCiMgV2lsbCByZW1lbWJlciB3aGl0ZSBzcGFjZXMgYmVmb3JlIGVh Y2ggc2VnbWVudAp0eXBlc2V0IC1hIHNwYWNlcwpzcGFjZXM9KCkKCiMgV29ya2luZyB2YXJpYWJs ZSBmb3IgJEJVRkZFUgpsb2NhbCBidWY9IiRCVUZGRVIiCgojIFNwbGl0IHRoZSBidWZmZXIKdHlw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