aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorPabloMansanet2021-06-11 12:57:07 +0000
committerGitHub2021-06-11 12:57:07 +0000
commit86af55c379c531df2d5dbc72841e28a10fc7938e (patch)
treed2946657e2ca0102c7ddf291b0ffb9819ab001d9 /book/src
parent0c2b99327a60d478ff6a4e4a2a15f69e61857569 (diff)
Movement fixes, refactor and unit test suite (#217)
* Add convenience/clarity wrapper for Range initialization * Test horizontal moves * Add column jumping tests * Add failing movement conditions for multi-word moves * Refactor skip_over_next * Add complex forward movement unit tests * Add strict whitespace checks and edge case tests * Restore formatting * Remove unused function * Add empty test case for deletion and fix nth_prev_word_boundary * Add tests for backward motion * Refactor word movement * Address review comments and finish refactoring backwards move * Finish unit test suite * Fmt pass * Fix lint erors * Clean up diff restoring bad 'cargo fmt' actions * Simplify movement closures (thanks Pickfire) * Fmt pass * Replace index-based movement with iterator based movement, ensuring that each move incurs a single call to the RopeSlice API * Break down tuple function * Extract common logic to all movement functions * Split iterator helpers away into their own module * WIP reducing clones * Operate on spans * WIP simplifying iterators * Simplify motion helpers * Fix iterator * Fix all unit tests * Refactor and simplify * Simplify fold
Diffstat (limited to 'book/src')
-rw-r--r--book/src/keymap.md42
1 files changed, 21 insertions, 21 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index c7ffbb26..65d01b86 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -19,7 +19,7 @@
| F | find previous char |
| Home | move to the start of the line |
| End | move to the end of the line |
-| m | Jump to matching bracket |
+| m | Jump to matching bracket |
| PageUp | Move page up |
| PageDown | Move page down |
| ctrl-u | Move half page up |
@@ -42,10 +42,10 @@
| R | replace with yanked text |
| i | Insert before selection |
| a | Insert after selection (append) |
-| I | Insert at the start of the line |
-| A | Insert at the end of the line |
-| o | Open new line below selection |
-| o | Open new line above selection |
+| I | Insert at the start of the line |
+| A | Insert at the end of the line |
+| o | Open new line below selection |
+| o | Open new line above selection |
| u | Undo change |
| U | Redo change |
| y | Yank selection |
@@ -54,26 +54,26 @@
| > | Indent selection |
| < | Unindent selection |
| = | Format selection |
-| d | Delete selection |
-| c | Change selection (delete and enter insert mode) |
+| d | Delete selection |
+| c | Change selection (delete and enter insert mode) |
### Selection manipulation
| Key | Description |
|-----|-----------|
-| s | Select all regex matches inside selections |
-| S | Split selection into subselections on regex matches |
-| alt-s | Split selection on newlines |
-| ; | Collapse selection onto a single cursor |
-| alt-; | Flip selection cursor and anchor |
-| % | Select entire file |
-| x | Select current line |
-| X | Extend to next line |
-| [ | Expand selection to parent syntax node TODO: pick a key |
+| s | Select all regex matches inside selections |
+| S | Split selection into subselections on regex matches |
+| alt-s | Split selection on newlines |
+| ; | Collapse selection onto a single cursor |
+| alt-; | Flip selection cursor and anchor |
+| % | Select entire file |
+| x | Select current line |
+| X | Extend to next line |
+| [ | Expand selection to parent syntax node TODO: pick a key |
| J | join lines inside selection |
| K | keep selections matching the regex TODO: overlapped by hover help |
| space | keep only the primary selection TODO: overlapped by space mode |
-| ctrl-c | Comment/uncomment the selections |
+| ctrl-c | Comment/uncomment the selections |
### Search
@@ -82,10 +82,10 @@ in reverse, or searching via smartcase.
| Key | Description |
|-----|-----------|
-| / | Search for regex pattern |
-| n | Select next search match |
-| N | Add next search match to selection |
-| * | Use current selection as the search pattern |
+| / | Search for regex pattern |
+| n | Select next search match |
+| N | Add next search match to selection |
+| * | Use current selection as the search pattern |
### Diagnostics