From: Roman Perepelitsa <email@example.com> To: TJ Luoma <firstname.lastname@example.org> Cc: Zsh MailingList <email@example.com> Subject: Re: up-arrow for history 'broken' after ssh Date: Tue, 28 Jul 2020 19:42:00 +0200 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 <firstname.lastname@example.org> 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' \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ /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
zsh-users This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.vuxu.org/zsh-users # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V1 zsh-users zsh-users/ http://inbox.vuxu.org/zsh-users \ firstname.lastname@example.org public-inbox-index zsh-users Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.vuxu.org/vuxu.archive.zsh.users code repositories for the project(s) associated with this inbox: https://git.vuxu.org/mirror/zsh/ AGPL code for this site: git clone https://public-inbox.org/public-inbox.git