mirror of
https://github.com/zsh-users/zsh-history-substring-search.git
synced 2026-11-11 19:51:49 -05:00
README: upgrade to CommonMark; move <C-v> note up
This commit is contained in:
committed by
GitHub
parent
21c025eb33
commit
2b6451de03
@@ -35,6 +35,9 @@ Usage
|
||||
|
||||
Users typically bind their UP and DOWN arrow keys to this script, thus:
|
||||
* Run `cat -v` in your favorite terminal emulator to observe key codes.
|
||||
(**NOTE:** In some cases, `cat -v` shows the wrong key codes. If the
|
||||
key codes shown by `cat -v` don't work for you, press `<C-v><UP>` and
|
||||
`<C-v><DOWN>` at your ZSH command line prompt for correct key codes.)
|
||||
* Press the UP arrow key and observe what is printed in your terminal.
|
||||
* Press the DOWN arrow key and observe what is printed in your terminal.
|
||||
* Press the Control and C keys simultaneously to terminate the `cat -v`.
|
||||
@@ -53,10 +56,6 @@ Usage
|
||||
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
* (Note: There are cases, where `cat -v` lies to you. If the key codes
|
||||
provided by `cat -v` didn't work for you, try pressing `<C-v><UP>`
|
||||
and `<C-v><DOWN>` in the terminal and using the displayed key
|
||||
codes instead.)
|
||||
|
||||
3. Type any part of any previous command and then:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user