Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to work #92

Closed
a59 opened this issue Mar 13, 2018 · 4 comments
Closed

Doesn't seem to work #92

a59 opened this issue Mar 13, 2018 · 4 comments

Comments

@a59
Copy link

a59 commented Mar 13, 2018

I installed this per the instructions, but it doesn't seem to do anything.

I type say xyz then the "up arrow", and I get the previous entry from the history.

ETA.

bindkey "$terminfo[kcuu1]" history-substring-search-up does work.
bindkey '^[[A' history-substring-search-up does not

@aeksco
Copy link

aeksco commented Mar 19, 2018

Seeing the same problem on my end - running ZSH on Linux Mint 18.3 Sylvia inside TMUX.

The following key bindings work on my system:

bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down

Terminfo Reference

My suspicion is that TMUX could be causing some problems, but I'll likely not pursue the problem any further since I got it working on my end with the above bindkey statements.

Good luck!

@iandol
Copy link

iandol commented Jan 9, 2019

Hi, I can confirm that "$terminfo[kcuu1]" works under Ubuntu 18.04 whereas '^[[A' etc. fails even though that is what cat -v shows is the key to bind...

That also still works on macOS (where '^[[A' works fine), so it is cross-platform compatible...

@iandol
Copy link

iandol commented Jan 16, 2019

Actually, I was wrong about "$terminfo[kcuu1]" working on macOS; it doesn't (tested in Terminal and Kitty). And so if you want a cross-platform solution you need to specify different values for bindkey... 😭

@sunaku
Copy link
Member

sunaku commented May 13, 2019

Exactly! :neckbeard: We have tried using only terminfo in the past, but soon learned (through user issues) that there is no generic configuration that works for all platforms for binding arrow keys in ZSH. 😩 So instead, we have next best thing: an inexact how-to guide in the README. 😜 I have added your suggestions to the README.

@sunaku sunaku closed this as completed May 13, 2019
vitahall pushed a commit to vitahall/zsh-history-substring-search that referenced this issue Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants