From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: History Up key
Date: Tue, 13 Mar 2001 13:57:46 -0800 [thread overview]
Message-ID: <010313135746.ZM638@candle.brasslantern.com> (raw)
In-Reply-To: <E14cvJO-00084f-00@crucigera.fysh.org>
(Relocated to -workers)
On Mar 13, 8:22pm, Zefram wrote:
> Subject: Re: History Up key
>
> A. It would be a bad idea to have arrow keys bound by default in vi
> insert mode. Emacs mode and vi command mode don't have the same
> problems, because <esc> itself isn't bound to anything in those
> keymaps.
Obviously, though, users want it, or all those vi clones wouldn't have put
in hacks to make it work.
> B. Adapting the arrow key sequences to the local terminal is problematic.
> Binding things like ^H as arrow key sequences will cause big problems,
> so at minimum terminals where arrow keys don't send escape sequences
> should be treated as having no arrow keys.
This suggests that any and all keybindings read from term(cap|info) should
be bound BEFORE any of zsh's regular defaults, so that e.g. if down-arrow
sends ^J, the binding to down-history is replaced by one for accept-line.
> With that heuristic in
> place, the only problem with adaption is the issue of programmatically
> knowing where those bindings are.
Which should be easier with the termcap and terminfo modules ...
> C. The documentation should contain advice on how to turn *on* key
> bindings for arrow keys in vi insert mode. This avoids the issue
> of difficulty in turning off the bindings.
Should I commit my zkbd script? If so, where -- under Misc/ ?
(See zsh-users/3563)
next parent reply other threads:[~2001-03-13 21:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E14cvJO-00084f-00@crucigera.fysh.org>
2001-03-13 21:57 ` Bart Schaefer [this message]
2001-03-14 11:28 ` Peter Stephenson
2001-03-15 19:15 ` Zefram
2001-03-15 19:27 ` Zefram
2001-03-17 22:31 ` Bart Schaefer
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=010313135746.ZM638@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@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).