From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23067 invoked by alias); 11 Jan 2016 13:13:57 -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: 37561 Received: (qmail 14469 invoked from network); 11 Jan 2016 13:13:55 -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:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=lXzqEftZ3230Ow4AB1DkXqifWTdiSYnpjy9dR+snlac=; b=eYDC6/Y+JNo8EbAQIn+W3IwC1vIFcstdMAN3mS2UiNJR6Tycnh6po39P6OMgBc8P7R FxtfBHuKK4hhOVt1qGQyoHMjKB8pc+jQ0q1m1DPJFoX6b6n9DtHiqm1KwXl+ZWVNk8Wj DY26ir8qFZ7OhFXcxQYqANk8CCmjF5flIGvmAA0ZDsx0za+UBcBpOjxJn42bDfcgHBDi xhEKVu4UBmQxULP3B01w/hgC2UeVy6cJ1zSLcyd0syruNDGVHahSEIM4Ao42XsgJtX99 Nlx9py/bkWBYxKlNlKaZ1D9UZpAzrqvu+uRamOXl5NqmS6op4421WlZFFWrG75G0QoIO GzzQ== X-Received: by 10.25.151.9 with SMTP id z9mr31425352lfd.72.1452518030416; Mon, 11 Jan 2016 05:13:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <160109101801.ZM3561@torch.brasslantern.com> References: <160109092258.ZM3394@torch.brasslantern.com> <160109094833.ZM3453@torch.brasslantern.com> <160109101801.ZM3561@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Mon, 11 Jan 2016 14:13:31 +0100 Message-ID: Subject: Re: transpose-words-match (Re: New widget "transpose-segments") To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 9 January 2016 at 19:18, Bart Schaefer wrote= : > Yes, I'm just not sure it's an *intentional* difference. Bart there already is "copy-prev-shell-word". It's good to not be bound to global select-word-style setting. My widget named "transpose-shell-words" and your simple "backward-kill-shell-word" (the one for zsh >=3D 5.0.8) together with "copy-prev-shell-word" would constitute a nice feature set. And I'm using Daniel's "backward-kill-shell-word" in my Zew so that all Zsh users, even before zsh-5.0.8 can be happy That said I tested your bksw and it doesn't fully work for following multi-line command: a=3D${(j:,:)a} a=3D"${(r:100000:: _:)a}" =E8=A9=A6=E5=8F=A5=E7=9B=B8=E7=95=B6=E9=95=B7 "" a\ b c\ b There is a space after "". When cursor is positioned after this space, invoking bksw joins lines "" and a\ b instead of deleting "". Daniel's code works on this. It's not the first time that (z) flags proves its robustness, but maybe your simpler bksw can be updated to handle this case? Best regards, Sebastian Gniazdowski