From: Thomas Lauer <thomas.lauer@virgin.net>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to bindkey Ctrl-[
Date: Fri, 20 Oct 2023 18:02:51 +0100 [thread overview]
Message-ID: <42o2jipbbu2d789at8eqa6sa1sd2ashen5@tlc.com> (raw)
In-Reply-To: <1013280694.1246316.1697732973780@mail.virginmedia.com>
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
Date: Thu, 19 Oct 2023 17:29:33 +0100 (BST)
> > On 19/10/2023 16:46 Thomas Lauer <thomas.lauer@virgin.net> wrote:
> > I want to bind Ctrl-[ to the set-mark-command widget. Naive first try
> > was this:
> >
> > bindkey "^[" set-mark-command
> >
> > but that binds the widget to Esc (which is indeed "^["). I've tried
> > various ideas but no joy.
> >
> > Is that even possible with my terminal/zsh config?
>
> The simple answer is no --- they are both character 27 in a stream of
> characters, so the shell can't tell them apart.
>
> A bit of terminal wizardry to make one look different might be possible,
> but 1. that's terminal specific 2. you're going to have to do it in such a
> way that it doesn't confuse other utilities 3. if you're going that way
> you're probably better grabbing a function key and using that, which
> can be done by a shell binding (there are guides to this around somewhere).
>
> cheers
> pws
Yeah, I thought as much. No biggie really, I have enough other availabe
bindings.
--
Thanks T
prev parent reply other threads:[~2023-10-20 17:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-19 15:46 Thomas Lauer
2023-10-19 16:29 ` Peter Stephenson
2023-10-20 17:02 ` Thomas Lauer [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=42o2jipbbu2d789at8eqa6sa1sd2ashen5@tlc.com \
--to=thomas.lauer@virgin.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).