aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorLinden Krouse2024-05-01 21:22:02 +0000
committerJJ2024-05-01 23:54:41 +0000
commitbbc1a3cc99644e5be1030b5ed8d51928c821b866 (patch)
tree2c15ffd41c6af83844a3c56b59e3ba14e10154e7 /book/src
parentcd2202fd54e5458371f8f15c149686f6c0933a9e (diff)
Add support for Unicode input
ref: https://github.com/helix-editor/helix/issues/1438 ref: https://github.com/helix-editor/helix/pull/2852
Diffstat (limited to 'book/src')
-rw-r--r--book/src/configuration.md13
-rw-r--r--book/src/keymap.md1
2 files changed, 14 insertions, 0 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index 147e4eba..63c20334 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -412,3 +412,16 @@ Sets explorer side width and style.
| -------------- | ------------------------------------------- | ------- |
| `column-width` | explorer side width | 30 |
| `position` | explorer widget position, `left` or `right` | `left` |
+
+
+### `[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 52c179f5..b98e101c 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -73,6 +73,7 @@ Normal mode is the default mode when you launch helix. You can return to it from
| `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 |