Skip to content

Commit

Permalink
switch keybindings for z and y (fixes #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Jan 7, 2024
1 parent 29dc290 commit 983832f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified config/absytree_config_wasm.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions config/default_config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ proc loadDefaultKeybindings*(clearExisting: bool = false) =
addCommand("editor.model", "<SA-HOME>", "move-cursor-line-start-inline", true)
addCommand("editor.model", "<SA-END>", "move-cursor-line-end-inline", true)

addCommand("editor.model", "<C-y>", "undo")
addCommand("editor.model", "<C-z>", "redo")
addCommand("editor.model", "<C-z>", "undo")
addCommand("editor.model", "<C-y>", "redo")
addCommand("editor.model", "<BACKSPACE>", "replace-left")
addCommand("editor.model", "<DELETE>", "replace-right")
addCommand("editor.model", "<SPACE>", "insert-text-at-cursor", " ")
Expand Down
8 changes: 4 additions & 4 deletions config/keybindings_normal.nim
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ proc loadNormalKeybindings*() {.scriptActionWasmNims("load-normal-keybindings").
addTextCommand "", "<C-m>", "select-next"
addTextCommand "", "<C-t>", "select-next"
addTextCommand "", "<C-n>", "invert-selection"
addTextCommand "", "<C-y>", "undo"
addTextCommand "", "<C-z>", "redo"
addTextCommand "", "<C-z>", "undo"
addTextCommand "", "<C-y>", "redo"
addTextCommand "", "<C-c>", "copy"
addTextCommand "", "<C-v>", "paste"
addTextCommand "", "<TAB>", "indent"
Expand Down Expand Up @@ -144,8 +144,8 @@ proc loadNormalKeybindings*() {.scriptActionWasmNims("load-normal-keybindings").
addCommand("editor.model", "<SA-HOME>", "move-cursor-line-start-inline", true)
addCommand("editor.model", "<SA-END>", "move-cursor-line-end-inline", true)

addCommand("editor.model", "<C-y>", "undo")
addCommand("editor.model", "<C-z>", "redo")
addCommand("editor.model", "<C-z>", "undo")
addCommand("editor.model", "<C-y>", "redo")

addCommand("editor.model", "<C-c>", "copy-node")
addCommand("editor.model", "<C-v>", "paste-node")
Expand Down

0 comments on commit 983832f

Please sign in to comment.