From: Bart Schaefer <schaefer@brasslantern.com>
To: kos@supportwizard.com, zsh-users@sunsite.dk
Subject: Re: bindkey to INS
Date: Sat, 24 Sep 2005 02:01:58 +0000 [thread overview]
Message-ID: <1050924020158.ZM13823@candle.brasslantern.com> (raw)
In-Reply-To: <200509240032.00439.kos@supportwizard.com>
On Sep 24, 12:32am, Konstantin Sobolev wrote:
}
} Is it possible to bind an INS key to accept-and-menu-complete?
} All my attempts like
} bindkey -M menuselect "${key[Insert]}" accept-and-menu-complete
} doesn't work, pressing Insert just prints a "~".
This appears to be a bug with menu-selection, not with bindkey. I
can't make any key binding of more than 3 characters work with the
menuselect keymap. I've tried as far back as zsh-4.0.6, so it is
not something new with UTF-8 support or the like.
} Also, is it possible to bind a couple of commands to the same key, like
} bindkey "^Z" "kill-line; accept-line"?
You need to create a widget.
function accept-leftward {
zle kill-line
zle accept-line
}
zle -N accept-leftward
bindkey \^Z accept-leftward
next prev parent reply other threads:[~2005-09-24 2:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 20:32 Konstantin Sobolev
2005-09-23 23:25 ` Clint Adams
2005-09-24 1:27 ` Konstantin Sobolev
2005-09-24 2:02 ` Clint Adams
2005-09-24 2:01 ` Bart Schaefer [this message]
2005-09-24 12:01 ` Konstantin Sobolev
2005-09-24 6:19 ` Andrey Borzenkov
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=1050924020158.ZM13823@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=kos@supportwizard.com \
--cc=zsh-users@sunsite.dk \
/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).