From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 554 invoked by alias); 4 Jun 2018 10:18:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23433 Received: (qmail 29250 invoked by uid 1010); 4 Jun 2018 10:18:17 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot0-f169.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.169):SA:0(-1.9/5.0):. Processed in 1.30189 secs); 04 Jun 2018 10:18:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SCl2blfwZBAwIduukuZnkyMub6C1hIuRHek9qE+PuOY=; b=CSStLzC1BLLR4/w1BzcYWkHqrrRJFccxzDxJ/vzTH8MeHzjQSE1olks36sd8LgW0B9 xZrwwE9MxwYFEb7qO/Qy5fAoprTsxPTWZ8MA4wAIl3VpVUpeXzo1xPdSG+sfTZNHbhvG DmNw9gj72Yo3E0VY+kqexLSSYL+9IYKtSy7gOLoqfLAvgOGPq07lvOctuofdX6CkV7LU X02nkBLiybf1LvbB938X0+WSfO+5UGhZ5knOEvpskm0LOoA4tZq4/dnzJlFj+YAFrgM5 gVAKbb/wgw4VQLJZdNDN/EPSBPHD0if3+4ms2Q+7thOstCDb7pGRA/VhSsJAU8NB9sDP OATw== X-Gm-Message-State: ALKqPwfdQN7EepRJaLoTXgNz6BUXp7YSA6nzV48P/UeULIX/CRsDOrpM jnaEvhOlY52zbOy+WH03nrbrBRSvW+DnL3trbNOdag== X-Google-Smtp-Source: ADUXVKIvX+R/VZzFWrvzt00dw3IvYQliYdEdRrjHTzT9s5C1OvFnGTTkY8roW3duOjP2tUGFv7UV59Ry5LN017RuhRk= X-Received: by 2002:a9d:2c8:: with SMTP id 66-v6mr13143420otl.28.1528107493293; Mon, 04 Jun 2018 03:18:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180604095044eucas1p2ae6dd78f9518e91e6171d15d3717f924~07CtDwS5C1968619686eucas1p2k@eucas1p2.samsung.com> References: <20180604083801eucas1p258b13dadf37a66e8a59e8714462d0577~06DN1ECXq0206402064eucas1p26@eucas1p2.samsung.com> <20180604095044eucas1p2ae6dd78f9518e91e6171d15d3717f924~07CtDwS5C1968619686eucas1p2k@eucas1p2.samsung.com> From: Sebastian Gniazdowski Date: Mon, 4 Jun 2018 12:17:52 +0200 Message-ID: Subject: Re: Extending zed To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" On 4 June 2018 at 11:50, Peter Stephenson 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