Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Extending zed
- X-seq: zsh-users 23433
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Extending zed
- Date: Mon, 4 Jun 2018 12:17:52 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SCl2blfwZBAwIduukuZnkyMub6C1hIuRHek9qE+PuOY=; b=r/OQBPmvUKFvCUcBJjdlwe0YhWEGxZMykHbtF2m+WdDInJTOZ6Vg5rFlJHgmG3AWMp irodW8NDn8qBqTgGv7cZqRhkbn3XYf/GXid1LwTosRUVVDaE8QqhHVXiZHsoESduoXvh 7eIXvgTyNzbWFq2WnRBE+rhJ4fJMPd972dpgiveShUpwP48yyd8o/xGETl1nnP6YRqqT cEHfHKY0qoldL+a+2J5c3TAy0xoFoYLR+mnni5/b85sDu0O3luJO4oy0TqPK+KMzaL8l cIiAXJkEx8iUFfCSnBACnshIHMkkaAK9i7mCT1ksV6ZRPVSApJf424ooGRdiViBodaM4 i8PQ==
- In-reply-to: <20180604095044eucas1p2ae6dd78f9518e91e6171d15d3717f924~07CtDwS5C1968619686eucas1p2k@eucas1p2.samsung.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20180603055854epcas5p1e92f5a41384aeb9d1555751df74f57ee@epcas5p1.samsung.com> <CAKc7PVDas7ZvXA0CvR1opSH5Wz0d=FVj=NZHGSu2k3C_o=fGZQ@mail.gmail.com> <20180604083801eucas1p258b13dadf37a66e8a59e8714462d0577~06DN1ECXq0206402064eucas1p26@eucas1p2.samsung.com> <CAKc7PVCV3TCe4k-SyJOiD6aDA+uF5FRM_5Q45X9sLPOeCOunWA@mail.gmail.com> <20180604095044eucas1p2ae6dd78f9518e91e6171d15d3717f924~07CtDwS5C1968619686eucas1p2k@eucas1p2.samsung.com>
On 4 June 2018 at 11:50, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
>
> bindkey extensions ought to be unproblematic --- you'll see there's
> already a zed keymap which binds ^x^w to accept-line.
I've looked at the undo problem. Ctrl-/ (or Ctrl-_ that's the same
control code as we know) works fine in insert mode, i.e. it does do
undo. I've checked it's bound to widget "undo" (checking code at the
end of post). Then I've checked the not-working "u" in zed-vicmd
keymap. It is also bound to widget "undo". But it makes viewport
blank, doesn't do smooth undo like Ctrl-/. What is the way out of
this? Shoud vicmd keymap bind to vi-undo-change? Docs suggest it is a
one-time undo.
I've added those to zed to check the bindings:
bindkey -M zed-vicmd | egrep -i '("u"|\^_)'
bindkey -M zed | egrep -i '("u"|\^_)'
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author