zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: PATCH: Add SHORT_KEYBIND_DISCARD option
Date: Wed, 06 Apr 2016 16:33:27 +0200	[thread overview]
Message-ID: <24571.1459953207@thecus.kiddle.eu> (raw)
In-Reply-To: <1459658514-24610-1-git-send-email-mikachu@gmail.com>

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


  reply	other threads:[~2016-04-06 14:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03  4:41 Mikael Magnusson
2016-04-06 14:33 ` Oliver Kiddle [this message]
2016-04-06 18:06   ` Mikael Magnusson
2016-04-06 19:25     ` Bart Schaefer
2016-04-07 15:25     ` Oliver Kiddle
2016-04-07 16:07       ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24571.1459953207@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).