From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27623 invoked by alias); 12 Jan 2016 08:09:19 -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: 37576 Received: (qmail 7677 invoked from network); 12 Jan 2016 08:09:18 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=z/6FyyHMEVd6MrRUnetRypF/ZvcAL+ETyYglXVcgS8k=; b=HdOoOrdWhhSWG278Tob584mwWEFOq/oA50xCjPlBRl+JoZxpW4NY12KQrqH97GuZcu 8qDUnaIuR3pAyspP6Ul5uW/TSd14+9KyWa1xA5xpHzS6u5JSR41vQAMt4FHEcN0jA1fh SaooIXE/9t0IlEhoWa+zA3mrY4o8Gtq+rcoMS/Qad3jPB92KKDtLwGlr8fBQPUBpI1hb Xi/0pd3q9rlaLLUQrpALJ0iGoCOTFGrYy7Vvgldt2OVSYHHfNWqmkEaQPEOBHc5tl/8Q L9M1Kmhf0x9Mw0CAeU/J1iDtcrOhQ0qxmTrghS6G8VudmCoLGxbB6GCuanem3Z9+VkaH UCvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=z/6FyyHMEVd6MrRUnetRypF/ZvcAL+ETyYglXVcgS8k=; b=TP6+lHPS3BytqdcrpVOiB9fEbpiq/dK9C+6LHpD7hxGUPjTv1EdY6CdnjgQh1XsGs3 +Gx6pu5Ag59/glqrnzDO/hL7fS757Fkr93hBo4QFKIxbkOocom44ZZSEf6LvsqKNDEpc IfpKVmXwR4+6W8JkmGuKuOKE3Ev0Oc0IKS0K8NBhKJJoz8bcH2brBRoIxtIAWcEpWa8N K7EHS6pd2S9DYHIV40ottTcDKx1DK0yhkyzLeZpyQxw32v4tRJTEe4cpcfERLq3DZFsI j8Qn0/4ASCOy0HoHAKNUt5uiIUWb8jhRbigRV91Qzi/tOkzIS+URfA9tCdXLmmQE/MBw phkw== X-Gm-Message-State: ALoCoQnH8UQDU94RrmeAhF/23/sOWoTGw92a7mcfv9KoSo8cqRuTtGRWVTqN0s4LENbafiSgYlD+lRlNT0wfMkUf46c8Acz5bg== X-Received: by 10.66.252.102 with SMTP id zr6mr101820866pac.66.1452586155490; Tue, 12 Jan 2016 00:09:15 -0800 (PST) From: Bart Schaefer Message-Id: <160112000929.ZM6837@torch.brasslantern.com> Date: Tue, 12 Jan 2016 00:09:29 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: New widget "transpose-segments"" (Jan 9, 6:59pm) References: <160109092258.ZM3394@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: New widget "transpose-segments" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 9, 6:59pm, Sebastian Gniazdowski wrote: } } The main difference is working across newlines. Also, the requirement } to position cursor at beginning of word to transpose is absent. I } think those two are important. Patches for both of these sent a little while ago. } Also, setting word style is not needed. "select-word-style" is a shortcut for loading the entire set of widgets based on match-words-by-style. The style itself defaults properly if not set. So this is similar to saying transpose-words-match is better because "zle -N transpose-segments" would not be needed. I have no real objection to including either your widget or Daniel's, but the number of different ways to do the almost but not quote the same thing begins to be overwhelming (e.g., I would have preferred that Oliver not make the "vim text objects" into built-ins because that's also duplicating parts of match-words-by-style, but it was necesary to be able to have default key bindings). However, I should note that I would rather that we don't introduce yet another term ("segments") to mean "shell words".