summaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorCossonLeo2021-11-04 03:26:01 +0000
committerGitHub2021-11-04 03:26:01 +0000
commit39584cbccdb06b528220a13b643416f3fd5dc3c8 (patch)
tree0735dd712198c3b17596db42696c9b427ed0e34d /book/src
parent70d21a903fef3ec0787c453f369d95e5223a2656 (diff)
Add c-s to pick word under doc cursor to prompt line & search completion (#831)
* Add prompt shourtcut to book Add completions to search Add c-s to pick word under doc cursor to prompt line * limit 20 last items of search completion, update book * Update book/src/keymap.md Co-authored-by: Ivan Tham <pickfire@riseup.net> * limit search completions 200 Co-authored-by: Ivan Tham <pickfire@riseup.net>
Diffstat (limited to 'book/src')
-rw-r--r--book/src/keymap.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index a776ee70..4a6f80bb 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -258,3 +258,25 @@ Keys to use within picker. Remapping currently not supported.
| `Ctrl-s` | Open horizontally |
| `Ctrl-v` | Open vertically |
| `Escape`, `Ctrl-c` | Close picker |
+
+# Prompt
+Keys to use within prompt, Remapping currently not supported.
+| Key | Description |
+| ----- | ------------- |
+| `Escape`, `Ctrl-c` | Close prompt |
+| `Alt-b`, `Alt-Left` | Backward a word |
+| `Ctrl-b`, `Left` | Backward a char |
+| `Alt-f`, `Alt-Right` | Forward a word |
+| `Ctrl-f`, `Right` | Forward a char |
+| `Ctrl-e`, `End` | move prompt end |
+| `Ctrl-a`, `Home` | move prompt start |
+| `Ctrl-w` | delete previous word |
+| `Ctrl-k` | delete to end of line |
+| `backspace` | delete previous char |
+| `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` | slect next completion item |
+| `BackTab` | slect previous completion item |
+| `Enter` | Open selected |
+