zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Todd E Thomas <todd.dsm@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: RFE: Enable Shell Hotkey: ctrl+u
Date: Mon, 3 Apr 2023 18:05:38 -0700	[thread overview]
Message-ID: <CAH+w=7YbzK-z0G=ZdMUYtTzLS0tUTJr0o6Yf+=pFmHNfJHurjQ@mail.gmail.com> (raw)
In-Reply-To: <CAGJLD2GV8WeSP3oxBvjH=pbXKNUt4iYdfTrVmu=68rR0Kqq54Q@mail.gmail.com>

On Mon, Apr 3, 2023 at 5:47 PM Todd E Thomas <todd.dsm@gmail.com> wrote:
>
> Please implement the Control-u functionality as described above. Or, given the functionality exists, simply bind to ctrl+u by default.
>
> I hear this as an occasional complaint from a few of us old geezers (like me) who have a lot of muscle memory invested into these shortcuts. Time to ask for help :-)

This is as it is because of even older geezers who have muscle memory
for the way "stty kill" works, and for 4.x BSD where ^U is the kill
character by default.  Of course it can be argued that stty kill
deletes the whole line only because it's not possible for the cursor
to be anywhere other than at the end of the line in the stty driver,
so the readline choice is not entirely unreasonable.

Anyway, you're looking for
bindkey ^U backward-kill-line


      reply	other threads:[~2023-04-04  1:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-04  0:46 Todd E Thomas
2023-04-04  1:05 ` Bart Schaefer [this message]

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=7YbzK-z0G=ZdMUYtTzLS0tUTJr0o6Yf+=pFmHNfJHurjQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=todd.dsm@gmail.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).