Skip to content

Commit

Permalink
Show keys required to enter each minor mode (helix-editor#4302)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
  • Loading branch information
kneasle and the-mikedavis committed Oct 16, 2022
1 parent 706762e commit e8617b8
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ These sub-modes are accessible from normal mode and typically switch back to nor

#### View mode

Accessed by typing `z` in [normal mode](#normal-mode).

View mode is intended for scrolling and manipulating the view without changing
the selection. The "sticky" variant of this mode is persistent; use the Escape
key to return to normal mode after usage (useful when you're simply looking
over text and not actively editing it).
the selection. The "sticky" variant of this mode (accessed by typing `Z` in
normal mode) is persistent; use the Escape key to return to normal mode after
usage (useful when you're simply looking over text and not actively editing
it).


| Key | Description | Command |
Expand All @@ -188,6 +191,8 @@ over text and not actively editing it).

#### Goto mode

Accessed by typing `g` in [normal mode](#normal-mode).

Jumps to various locations.

| Key | Description | Command |
Expand All @@ -213,9 +218,10 @@ Jumps to various locations.

#### Match mode

Enter this mode using `m` from normal mode. See the relevant section
in [Usage](./usage.md) for an explanation about [surround](./usage.md#surround)
and [textobject](./usage.md#textobject) usage.
Accessed by typing `m` in [normal mode](#normal-mode).

See the relevant section in [Usage](./usage.md) for an explanation about
[surround](./usage.md#surround) and [textobject](./usage.md#textobject) usage.

| Key | Description | Command |
| ----- | ----------- | ------- |
Expand All @@ -230,6 +236,8 @@ TODO: Mappings for selecting syntax nodes (a superset of `[`).

#### Window mode

Accessed by typing `Ctrl-w` in [normal mode](#normal-mode).

This layer is similar to Vim keybindings as Kakoune does not support window.

| Key | Description | Command |
Expand All @@ -252,8 +260,9 @@ This layer is similar to Vim keybindings as Kakoune does not support window.

#### Space mode

This layer is a kludge of mappings, mostly pickers.
Accessed by typing `Space` in [normal mode](#normal-mode).

This layer is a kludge of mappings, mostly pickers.

| Key | Description | Command |
| ----- | ----------- | ------- |
Expand Down

0 comments on commit e8617b8

Please sign in to comment.