From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 516 invoked by alias); 29 Jul 2015 14:20:36 -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: 35950 Received: (qmail 2563 invoked from network); 29 Jul 2015 14:20:32 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1438179293; bh=RnwgeuPENhFCMpCBzbAcHKEyNdhEI5otZoQDxBVRb/U=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=izIQePWkyXqJS3nBj2HcEEW7DbulrlfXS7UlatdOywfqG77Ju37EXR5a3LVgpkgKJtwh1+qHjVN73vOlj9S5RGjYq3dv8xiTpZgstspn/CDyesn6Ooc5DoamUdDRxows5Dek+VQNe85NxaE7OmBqh5X+AVVUWg8cMJjV2qif3BL8W5kvwFHBkvFTYl92leNKIwXB0V0BdZI0XpEWq5knxeSElqHnTeMKUdPCohu/FOuVuV8ykA/AcyY3P+Jp/eHLepvQXGDVlmhq6xQtSfgv4GMSfoazdpbRQv/rT6cGTuZTxoS88j4EoQ9WolczfMi5AgdgHkMkkEbybBgDu3Jq+w== X-Yahoo-Newman-Id: 597456.27976.bm@smtp144.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: n9Yu6c0VM1mxYTtVkiUsLuUW7xMPJNlYHJaeJrjNOGcucbc NOMP7tklZX8ndrCM4.hb5NLI9K8xQb2m2ckvBIcL9FU3qh_mf.ruNrkxmXRg 1pX8RGXxRiwxlRXbVZOPBKtXzJfudgXtuTRplDcgjOhUtUTQiowKgGUgcJae .gxxc6Kdga623aNySshSWbz4T_3WXGWbAMgche2h0WWfrLNbv7hlY9paPPhD DkWJI5fGe6FxF.FSQVY9_v8kcrww1g66R7iaArQ10TvewXhTLRPh8HP1sWWu Hc7KEJC.YGnHsC3xCkyVx8kwOiXCSxSnDPaKeZvOsDeFogByWgEK_Zq50hDh k0FKcMMEHlsQ.QzX3_SjiAwsPRGtBGa4NsvtZvBS8_0MZFG26o99X0muhFeX IkVxOo8qRpr75zAaP3iekRPyq._PRI3S_hrSbobJvIYuuPHdiZJCG7Tw6tSx hH1AhhwNrSAhdqiBgxJ.KGK99.vGLU5wVR0MKVkFnlQ6u8fHw_GDErZWCkGp N0VUa90KXxQpr9k4tUh4Ohman8IaYBHDeMMl2qOnjJsA7SmfczQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: From: Oliver Kiddle References: <5d9984411ba10dee4321a408e2763317@riseup.net> <9361.1438161965@thecus.kiddle.eu> To: "zsh-workers@zsh.org" Subject: Re: Vimode problem (key press dropping) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11401.1438179292.1@thecus.kiddle.eu> Date: Wed, 29 Jul 2015 16:14:52 +0200 Message-ID: <11402.1438179292@thecus.kiddle.eu> "Jun T." wrote: > > On 2015/07/29, at 18:26, Oliver Kiddle wrote: > > > > Question to -workers subscribers: how should we address this in the > > defaults? > > In zle_keymap.c, near line 1493, timeout is set only if > (f != t_undefinedkey). But ESC is an undefinedkey in vicmd keymap, > and the timeout remains to be zero even if ispfx is true. I don't think this helps because where the prefix is an individual key typed by the user, they are then forced to type the following character in the sequence faster than KEYTIMEOUT. And if something like a is typed too fast from vi-mode, it would still be thrown out as a whole. Taking the default emacs bindings, Ctrl-X is a prefix but we don't want a timeout after Ctrl-X because it is the user typing followup characters. Mikael wrote: > I always felt like how it should work if we get the string "abc", is > first abc is looked up and we find it isn't bound to anything, the a > gets treated as a separate input string, then we look up bc instead, > etc. What we do now is just discard the whole string as > "undefined-key". The current behaviour where the whole sequence is thrown out is consistent with emacs. I think it makes sense for the typical emacs case if you make a mistake with a manual sequence. We can't really special-case escape because manual sequences with escape are also common in emacs mode. Binding escape in vi command mode does, however, solve it. Oliver