Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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: <CAKc7PVCVFN2639GkbitXO_yZtqK02zUWH-oLGYBysv6J3TreTg@mail.gmail.com>
 <160109092258.ZM3394@torch.brasslantern.com> <160109094833.ZM3453@torch.brasslantern.com>
 <CAKc7PVDdF0QHbpseYrZ6FqdAzfLe_iqspQkp1v8nJq3rXqFC2g@mail.gmail.com> <160109101801.ZM3561@torch.brasslantern.com>
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date: Mon, 11 Jan 2016 14:13:31 +0100
Message-ID: <CAKc7PVC9TBCVtC=ijqJMtcVqcojEi+4Zf4rW_R_gqDgr4NOvAg@mail.gmail.com>
Subject: Re: transpose-words-match (Re: New widget "transpose-segments")
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Seq: zsh-workers 37561

On 9 January 2016 at 19:18, Bart Schaefer <schaefer@brasslantern.com> 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

