From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: TJ Luoma <luomat@gmail.com>
Cc: Zsh MailingList <zsh-users@zsh.org>
Subject: Re: up-arrow for history 'broken' after ssh
Date: Tue, 28 Jul 2020 19:42:00 +0200 [thread overview]
Message-ID: <CAN=4vMqkgmwqgH5+4rArHdUfnqvsaKYG+cOHEptexF_WcoXg0w@mail.gmail.com> (raw)
In-Reply-To: <CADjGqHucU=rxFupWKgUThSRHYQu-kTDGY6ANcWZe0fePCaCh4g@mail.gmail.com>
On Tue, Jul 28, 2020 at 2:39 PM TJ Luoma <luomat@gmail.com> wrote:
>
> However, when I ssh from my Mac to a Linux machine [...]
> and then exit ssh, my 'up arrow' goes back one at a time
You almost certainly have different zle widgets bound to different key
sequences that correspond to up-arrow-key in raw and application
modes.
There are several ways to fix this.
1. Use `bind -s` to translate application mode key sequences to raw
and then bind only raw sequences to widgets (or the other way around).
This is my favorite.
2. Bind all widgets twice if you want to bind them to arrow keys or home/end.
3. Hook zle-line-init and change terminal mode to application/raw.
This is the most error prone method of the three. It breaks whenever
terminal mode is changed by a widget (as opposed to by a command) and
when you use some zsh plugins.
Roman.
next prev parent reply other threads:[~2020-07-28 17:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-28 12:37 TJ Luoma
2020-07-28 17:16 ` Lewis Butler
2020-07-28 17:42 ` Roman Perepelitsa [this message]
2020-07-29 0:48 ` 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='CAN=4vMqkgmwqgH5+4rArHdUfnqvsaKYG+cOHEptexF_WcoXg0w@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=luomat@gmail.com \
--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).