aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorBob2021-11-15 15:31:20 +0000
committerGitHub2021-11-15 15:31:20 +0000
commit46d9ae2b62f5b8494c527e0f8475509ce5fad095 (patch)
treebb17b6b0998fb7df248ed58384f6ad504a37146c /book/src
parentc638b6b60e69697b7e7957ed1af1ac071c41974b (diff)
Readline style insert mode (#1039)
* readline style insert mode * update keymap.md * don't save change history in insert mode * Revert "don't save change history in insert mode" This reverts commit cb47f946d7fb62ceda68e7d1692a3914d0be7762. * don't affect register and history in insert mode * add insert_register * don't call exit_select_mode in insert mode * avoid set_selection * avoid duplicated current!
Diffstat (limited to 'book/src')
-rw-r--r--book/src/keymap.md30
1 files changed, 23 insertions, 7 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index 88610a77..7a896035 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -243,11 +243,26 @@ Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaire
## Insert Mode
-| Key | Description | Command |
-| ----- | ----------- | ------- |
-| `Escape` | Switch to normal mode | `normal_mode` |
-| `Ctrl-x` | Autocomplete | `completion` |
-| `Ctrl-w` | Delete previous word | `delete_word_backward` |
+| Key | Description | Command |
+| ----- | ----------- | ------- |
+| `Escape` | Switch to normal mode | `normal_mode` |
+| `Ctrl-x` | Autocomplete | `completion` |
+| `Ctrl-r` | Insert a register content | `insert_register` |
+| `Ctrl-w` | Delete previous word | `delete_word_backward` |
+| `Alt-d` | Delete next word | `delete_word_forward` |
+| `Alt-b`, `Alt-Left` | Backward a word | `move_prev_word_end` |
+| `Ctrl-b`, `Left` | Backward a char | `move_char_left` |
+| `Alt-f`, `Alt-Right` | Forward a word | `move_next_word_start` |
+| `Ctrl-f`, `Right` | Forward a char | `move_char_right` |
+| `Ctrl-e`, `End` | move to line end | `goto_line_end_newline` |
+| `Ctrl-a`, `Home` | move to line start | `goto_line_start` |
+| `Ctrl-w` | delete previous word | `delete_word_backwar` |
+| `Ctrl-u` | delete to start of line | `kill_to_line_start` |
+| `Ctrl-k` | delete to end of line | `kill_to_line_end` |
+| `backspace`, `Ctrl-h` | delete previous char | `delete_char_backward` |
+| `delete`, `Ctrl-d` | delete previous char | `delete_char_forward` |
+| `Ctrl-p`, `Up` | move to previous line | `move_line_up` |
+| `Ctrl-n`, `Down` | move to next line | `move_line_down` |
## Select / extend mode
@@ -285,6 +300,7 @@ Keys to use within prompt, Remapping currently not supported.
| `Ctrl-e`, `End` | Move prompt end |
| `Ctrl-a`, `Home` | Move prompt start |
| `Ctrl-w` | Delete previous word |
+| `Alt-d` | Delete next word |
| `Ctrl-u` | Delete to start of line |
| `Ctrl-k` | Delete to end of line |
| `backspace`, `Ctrl-h` | Delete previous char |
@@ -292,7 +308,7 @@ Keys to use within prompt, Remapping currently not supported.
| `Ctrl-s` | Insert a word under doc cursor, may be changed to Ctrl-r Ctrl-w later |
| `Ctrl-p`, `Up` | Select previous history |
| `Ctrl-n`, `Down` | Select next history |
-| `Tab` | Select next completion item |
-| `BackTab` | Select previous completion item |
+| `Tab` | Select next completion item |
+| `BackTab` | Select previous completion item |
| `Enter` | Open selected |