From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23107 invoked by alias); 6 Apr 2016 14:39:06 -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: 38245 Received: (qmail 12258 invoked from network); 6 Apr 2016 14:39:03 -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, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1459953208; bh=pvkIqMWEyHA3QiULAIWfiWQ8azJXTxKw56iP4Z/SktQ=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=Woit85DpQ9CZB3IJrdrPmPFAjuQFT/b8HldttG+I8cWrwrKaG+jwXMmQrGgMGUN+5JKAr5M9V9eahmAe2H0LvOOM8ZXMyKJpHXvNcUGLmN9Li/d4vIVSrvK/n2O2I/xvxx9bqks5WdpCHs6Fdrhlra/5YEkbZGbOjJVudJQYYvXc7wJg5b72FTOK3JiF5HNWxm8HREPzYA2MiJo1A/Ty50UftTXI/YjZSNJK9zQxGWuyJFTuCy30eqskkdzIbEeOUeLn544ABjKh4aQQe3yvXH2LqdO5udyT27xVbjYX/WlZUyLiQwREd98v6pUH1PmlbepEmBenDrIOpkxKjstYLA== X-Yahoo-Newman-Id: 953741.79509.bm@smtp132.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: EImpDsoVM1kHUNo.FHGdFiEMH2KgDPNMrs.1vCNjvmnwTfB .Q1a879ISDu6gy4qF6sMelefdo_wa0abji8bNpzCNUTJtsLjOWKgZsKDGyav NWyE0euilrXek66VBRvoeHdxYuY5UGw0NydjJroXzCTq8JSFcKTuKq78S4jA ZFrzc2J2zEjdzMgn2oRU8nl.nLTTQoQX1EjEtD9cJ_a95IkOhVk6EYpfJqnn f2blbjd7RHQw3cA6JVrWQUcAKqJQhKFWSPGnEy4BAanB6TryN5dl6.8NnKS. Or7AnerYMRNrqTw_zDjZ6SrVsk2dVT3u4FXJ5XKoU_ADMv9uRRWxJnce10qh PNwvPHpcDtYxjBmg8_UHCfShtG_H2VxgNXC_Ji4lR3RHc2fV6huz3QKPBhzO OnybpVDV2zW3PSqTniHURzOM7BUr6t0fESy2iif3Z6_0p8DVpQHzVCUwcYQ6 1NrsZ89t8OAn5H2KULD3EY1IOeG.dQM0fKM7OJHMnUvSVSasDwi4cJS8DYR8 rklOsmAMtV0rBhEVjnmuRMQ40bDA3_A-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <1459658514-24610-1-git-send-email-mikachu@gmail.com> From: Oliver Kiddle References: <1459658514-24610-1-git-send-email-mikachu@gmail.com> To: zsh-workers@zsh.org Subject: Re: PATCH: Add SHORT_KEYBIND_DISCARD option MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24570.1459953207.1@thecus.kiddle.eu> Date: Wed, 06 Apr 2016 16:33:27 +0200 Message-ID: <24571.1459953207@thecus.kiddle.eu> On 3 Apr, Mikael Magnusson wrote: > Not sure how popular this option would be, but I'm fine with keeping > it local too. Basically when we encounter an undefined key, instead > of discarding the entire common prefix, we discard only one byte and > try again. In most particular, it means if you happen to press escape > or ctrl-x before pasting, we still properly detect the bracketed-paste > starting code. As a local fix, wouldn't simply binding the start code with each prefix serve your purposes? Didn't we discuss this issue a few months ago - have you perhaps got a message reference? I haven't had the impression that it is bothering a lot of people. And even without bracketed-paste, a prefix followed by a paste is likely to have had undesirable results. ZLE-specific stuff should ideally not leak into the base shell options. Or we're you actually hoping to stimulate thoughts on other solutions: perhaps a callback could be added like zle-keymap-select so you could change the cursor shape or prompt after a prefix. Oliver