aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorJJ2023-11-01 03:55:00 +0000
committerJJ2023-11-01 04:08:59 +0000
commita4394d502f8ee551660af5c8f04545cca349efb9 (patch)
tree14c1bbb3e9d9ce56e5168a123bd45dae8fde4810 /book
parent49b1f2a869be199aaba97e6a4d74995c5161d7b0 (diff)
Add support for Unicode input
note: a better approach is here https://github.com/quantonganh/snippets-ls ref: https://github.com/helix-editor/helix/issues/1438 ref: https://github.com/helix-editor/helix/pull/2852 Co-authored-by: Linden Krouse <ztaticnull@gmail.com>
Diffstat (limited to 'book')
-rw-r--r--book/src/configuration.md12
-rw-r--r--book/src/keymap.md1
2 files changed, 13 insertions, 0 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index 23a7a8cf..51373b64 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -371,3 +371,15 @@ Sets explorer side width and style.
|------------|-------------|---------|
| `enable` | If set to true, then when the cursor is in a position with non-whitespace to its left, instead of inserting a tab, it will run `move_parent_node_end`. If there is only whitespace to the left, then it inserts a tab as normal. With the default bindings, to explicitly insert a tab character, press Shift-tab. | `true` |
| `supersede-menu` | Normally, when a menu is on screen, such as when auto complete is triggered, the tab key is bound to cycling through the items. This means when menus are on screen, one cannot use the tab key to trigger the `smart-tab` command. If this option is set to true, the `smart-tab` command always takes precedence, which means one cannot use the tab key to cycle through menu items. One of the other bindings must be used instead, such as arrow keys or `C-n`/`C-p`. | `false` |
+
+### `[editor.digraphs]` Section
+
+By default, special characters can be input using the `insert_digraphs` command, bound to `\` in normal mode.
+Custom digraphs can be added to the `editor.digraphs` section of the config.
+
+```toml
+[editor.digraphs]
+ka = "か"
+ku = { symbols = "く", description = "The japanese character Ku" }
+shrug = "¯\\_(ツ)_/¯"
+```
diff --git a/book/src/keymap.md b/book/src/keymap.md
index 82910fe3..dc0786be 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -72,6 +72,7 @@ Normal mode is the default mode when you launch helix. Return to it from other m
| `a` | Insert after selection (append) | `append_mode` |
| `I` | Insert at the start of the line | `insert_at_line_start` |
| `A` | Insert at the end of the line | `insert_at_line_end` |
+| `\` | Insert digraphs | `insert_digraph` |
| `o` | Open new line below selection | `open_below` |
| `O` | Open new line above selection | `open_above` |
| `.` | Repeat last insert | N/A |