From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19538 invoked by alias); 27 Feb 2016 21:33:30 -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: 38041 Received: (qmail 15789 invoked from network); 27 Feb 2016 21:33:29 -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,HTML_MESSAGE, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QO41AI82HgUYwYEV3zcvR1u4YYiLViTZM0yF/tRjzog=; b=jK840KO7bZ1Pp2tfJZ4JyBmMMXLdixVlhNNaAapGrbEkG9Cf1uqHeTSIBKhYfZhsWi rCYFhldQTrVsGsQ91wF2AoHuBMqM4psDDNrxA3fRC3mxR8+pnSGku8+EyP8HJAfHpjxR ElaW/TVaDrl9Xr19oe9ibEijRr9bOmghrE7M+rRZ2UFA0iOY/YX9MAfMDOp1Dn9C4V7g hKU5aDAZk6B9vn3tw5O4MUm+Qw1A/RBxyZdOxCH13luhwNX6xA4JXcYqnT+b5zo9eXvH OkFJt2iOV/SXXXBrVk8xEXMAhKUzGJO8znTTg7v9Xa+DN2OA4x517G6vYHQtWLyfbCpr F5QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QO41AI82HgUYwYEV3zcvR1u4YYiLViTZM0yF/tRjzog=; b=gYaVvqZ+OgqvBTKwgh1QE77sdfvzx3KClykF6Ift3IdWYuSRHT0Susjfjbu5CEbdsx 4aMrxFmdjU/RJeuFytryhMN38eyV9OQvw9SAz3cezyMlwCksbwtpTHumMaZh6oujl6gD QBy/44ziliiBxbmU+kJmhBXuPUqu4ZcHWPlYXg4vexVb0Sg0VYlTfFb5sP3gB6GwCIDX HtNf4eD3e/aoGjhiyh2oiEK+O2lkdbB+hxb6LFK0e2CyVgnmQaU6D4glv7FNATxqUoVK sOHQHuaD+mRMQisKmCv1PK9MO0Bs3mZmt2Lar+E1aQ0l5VhYwvIq62DpOL/VCf9AeZrk 361Q== X-Gm-Message-State: AD7BkJJApZbFD/gTCGsf9kks+lGWkP1GRKqmVt/WP5HQO6m9eB/y5fFJVkJswuWbaVjWSvxZM5rJ+D+KVQtjzc4n X-Received: by 10.37.78.5 with SMTP id c5mr4748275ybb.53.1456608805886; Sat, 27 Feb 2016 13:33:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Michael Giuffrida Date: Sat, 27 Feb 2016 21:33:15 +0000 Message-ID: Subject: Re: No incremental undo in vi mode To: Bart Schaefer , Zsh hackers list Content-Type: multipart/alternative; boundary=001a113fd6fe742422052cc72a14 --001a113fd6fe742422052cc72a14 Content-Type: text/plain; charset=UTF-8 Explicitly binding "undo" to a key didn't help. However, I've gone ahead and bisected this; looks like it was introduced between 5.0.2 and 5.0.3, and fixed in 5.0.5-dev-1. Introduced in: 0ed3c5c (31765: If zle starts in viins mark as insertion. This allows undo to work on everything entered.) Fixed in: a8c4ed6 (32314: merge undo events corresponding to vi change in the vi-cmd-mode widget so undo from insert mode is useful again) Guess I'll upgrade. Thanks! On Sat, Feb 27, 2016 at 8:47 AM Bart Schaefer wrote: > On Fri, Feb 26, 2016 at 10:35 PM, Michael Giuffrida > 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? > --001a113fd6fe742422052cc72a14--