Skip to content

Commit

Permalink
Add completion/signature bindings to keymap.md
Browse files Browse the repository at this point in the history
PR helix-editor#9974 added alt-p/alt-n keybindings to scroll through signatures.
This wasn't very discoverable, as it's not in the docs or the command palette.

This also removes a broken link for "comment mode" in the table of contents.
  • Loading branch information
rcorre committed May 1, 2024
1 parent 752ed8e commit a851ae7
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
- [Match mode](#match-mode)
- [Window mode](#window-mode)
- [Space mode](#space-mode)
- [Comment mode](#comment-mode)
- [Popup](#popup)
- [Completion Popup](#completion-popup)
- [Signature Popup](#signature-popup)
- [Unimpaired](#unimpaired)
- [Insert mode](#insert-mode)
- [Select / extend mode](#select--extend-mode)
Expand Down Expand Up @@ -309,13 +310,31 @@ This layer is a kludge of mappings, mostly pickers.
##### Popup

Displays documentation for item under cursor.
Displays documentation for item under cursor. Remapping currently not supported.

| Key | Description |
| ---- | ----------- |
| `Ctrl-u` | Scroll up |
| `Ctrl-d` | Scroll down |

##### Completion Popup

Displays documentation for the selected completion item. Remapping currently not supported.

| Key | Description |
| ---- | ----------- |
| `Shift-Tab`, `Ctrl-p`, `Up` | Previous entry |
| `Tab`, `Ctrl-n`, `Down` | Next entry |

##### Signature Popup

Displays the signature of the selected completion item. Remapping currently not supported.

| Key | Description |
| ---- | ----------- |
| `Alt-p` | Previous signature |
| `Alt-n` | Next signature |

#### Unimpaired

These mappings are in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaired).
Expand Down

0 comments on commit a851ae7

Please sign in to comment.