commit 1839d4f00c9d233dbd3b8ce5b2130a5947038327
parent 5113289daca7369a32b45087602400f0d057928d
Author: Chris Bracken <chris@bracken.jp>
Date: Mon, 18 May 2026 08:22:11 +0900
zed: remap ¥ to \ in keymap
This flips the ¥ key on Japanese keyboards to emit \ by default and
Option-¥ to generate ¥. It's not often I need the yen sign whilst
programming.
Diffstat:
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/.config/zed/keymap.json b/.config/zed/keymap.json
@@ -0,0 +1,23 @@
+// Zed keymap
+//
+// For information on binding keys, see the Zed
+// documentation: https://zed.dev/docs/key-bindings
+//
+// To see the default key bindings run `zed: open default keymap`
+// from the command palette.
+[
+ {
+ "context": "Workspace",
+ "bindings": {
+ // "shift shift": "file_finder::Toggle"
+ },
+ },
+ {
+ "context": "Editor && vim_mode == insert",
+ "bindings": {
+ // "j k": "vim::NormalBefore"
+ "¥": ["workspace::SendKeystrokes", "\\"],
+ "alt-¥": ["workspace::SendKeystrokes", "¥"],
+ },
+ },
+]