zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: No incremental undo in vi mode
Date: Sat, 27 Feb 2016 08:47:56 -0800	[thread overview]
Message-ID: <CAH+w=7a8fRGVYj7G8y8kDZ8YP2Rg80+9vx1DWVpjvyhh_EqeMA@mail.gmail.com> (raw)
In-Reply-To: <CACi5S_11a6Y_=oMYzhSFTnvzPAUCUy41cO==DBa4ZUP_NucfFA@mail.gmail.com>

On Fri, Feb 26, 2016 at 10:35 PM, Michael Giuffrida
<michaelpg@google.com> wrote:
> When using vi bindings, my understanding is that `C-_` should trigger
> readline's undo behavior, as should `u` when in command mode.[1]

Zsh does not use readline.  It has its own editor with its own set of
key bindings.

> In zsh in vi mode, it just clears the whole line. So it's not useful for
> undoing the effect of glob expansion or other tab completion.

Are you sure you have C-_ bound to what you think you do?  With

bindkey -v
bindkey '\C-_' undo

I get the behavior you expect rather than the behavior you report.

What does

bindkey '\C-_'

output for you?


  reply	other threads:[~2016-02-27 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-27  6:35 Michael Giuffrida
2016-02-27 16:47 ` Bart Schaefer [this message]
2016-02-27 21:33   ` Michael Giuffrida

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='CAH+w=7a8fRGVYj7G8y8kDZ8YP2Rg80+9vx1DWVpjvyhh_EqeMA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --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).