zsh-users
 help / color / mirror / code / Atom feed
From: Hong Xu <hong@topbug.net>
To: zsh-users@zsh.org
Subject: ZLE_LINE_ABORTED: how to restore the last non-blank aborted line?
Date: Tue, 27 Sep 2016 21:11:20 -0700	[thread overview]
Message-ID: <ed1737fc-2336-dc0c-2f43-a2d2dc178bef@topbug.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]

Hi all,

While ZLE_LINE_ABORTED is useful for preserving the last aborted line,
but I think the real interest is the last aborted non-blank line --
ZLE_LINE_ABORTED would turn empty if ^C is pressed on an empty line
disregarding what it was. This is annoying since sometimes auto
completion stuck and more than one ^C is used to cancel that.

Is there any way to preserve it in this case in zsh? Thanks!

Hong



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

             reply	other threads:[~2016-09-28  4:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28  4:11 Hong Xu [this message]
2016-09-29  7:12 ` Bart Schaefer
2016-09-29  7:32   ` Hong Xu
2016-09-29  7:50     ` 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=ed1737fc-2336-dc0c-2f43-a2d2dc178bef@topbug.net \
    --to=hong@topbug.net \
    --cc=zsh-users@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).