Comments (10)
Note this bug report applies to both iterm2
and terminal
.
from zsh-history-substring-search.
What output do you see when you run cat -v
and then press the up and down arrow keys?
from zsh-history-substring-search.
Hey, here's the result; I pressed up
and down
:
❯ cat -v
^[[A^[[B
from zsh-history-substring-search.
I solved my problem by updating my zsh configuration with the following:
zmodload zsh/terminfo
bindkey "$terminfo^[[A" history-substring-search-up
bindkey "$terminfo^[[B" history-substring-search-down
Assuming this is correct you I guess just update your documentation?
from zsh-history-substring-search.
Sorry, never mind. I confused myself into think what I did above worked. It does not.
from zsh-history-substring-search.
@jasonkuhrt Since your cat -v
showed ^[[A
for up and ^[[B
for down, try using these settings:
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
from zsh-history-substring-search.
Solved! Documentation just needs tweaking then?
from zsh-history-substring-search.
@jasonkuhrt Yes, docs tweaked accordingly in commit 2f8a210. 🌟
from zsh-history-substring-search.
i never dug into why but i use:
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
After a quick google i found http://stackoverflow.com/questions/21175561/terminfo-smkx-and-application-cursor-keys-vs-application-keypad. There seems to be a difference between normal mode and application mode for cursor keys.
from zsh-history-substring-search.
@lexinator Thanks for the background. 📚 I've seen enough reports (#12, #21, #37) about the various "portable" keycode expressions not working consistently for everyone that I'm satisfied with the experimental method outlined in the README: even though it may be unportable across all terminals, it's at least 💯 guaranteed to work for the user on the terminal where they observed their cat -v
output.
from zsh-history-substring-search.
Related Issues (20)
- Release a new version HOT 2
- Not highlighting in zsh 5.9 HOT 13
- zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-up' HOT 2
- integrate `history-substring-search-down` with existing widget
- Incompatibility with custom config setopt globsubst
- Modify your readme, bindkey does not work, as mentioned in readme HOT 2
- Need Help, i must "source .zshrc" first for the plugin to works HOT 2
- binding keys doesn't work?
- `(anon):local:1: bad option: -e` error HOT 7
- History not synced accross terminals. HOT 2
- Highlighting doesn't work when using both marlonrichert/zsh-autocomplete and zsh-users/zsh-syntax-highlighting HOT 2
- Shell is stuck on 100% cpu if last character is a pipe
- Add separate license file HOT 1
- Create release including `HISTORY_SUBSTRING_SEARCH_PREFIXED` HOT 2
- How to install on Ubuntu 22.04 (in WSL2) without Oh My Zsh? HOT 4
- Cannot search across in different terminal tab
- Not enough arguments for -U HOT 8
- .zshrc:XXX: no matches found: [plugins...] HOT 3
- Where do historical records exist? HOT 1
- How do I change the data source of a history command to histdb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh-history-substring-search.