README: upgrade to CommonMark; move <C-v> note up
This commit is contained in:
parent
21c025eb33
commit
2b6451de03
1 changed files with 11 additions and 12 deletions
|
|
@ -35,6 +35,9 @@ Usage
|
||||||
|
|
||||||
Users typically bind their UP and DOWN arrow keys to this script, thus:
|
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.
|
* 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 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 DOWN arrow key and observe what is printed in your terminal.
|
||||||
* Press the Control and C keys simultaneously to terminate the `cat -v`.
|
* 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 'k' history-substring-search-up
|
||||||
bindkey -M vicmd 'j' history-substring-search-down
|
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:
|
3. Type any part of any previous command and then:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue