fix: Remove key collisions for scad-preview-mode

This commit is contained in:
Leni Aniva 2024-05-30 23:53:57 -07:00
parent 4ff5cfd3f9
commit 658206428c
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 12 additions and 11 deletions

View File

@ -661,12 +661,13 @@ Add the necessary hooks for LilyPond mode.
:desc "Export" "e" #'scad-export
:desc "Preview" "p" #'scad-preview
)
(map! :after scad-preview-mode
(map! :after scad-mode
:mode scad-preview-mode
:map scad-preview-mode-map
:desc "Size+" "+" #'scad-preview-size-+
:desc "Size-" "-" #'scad-preview-size--
:desc "Distance+" "[" #'scad-preview-distance-+
:desc "Distance-" "]" #'scad-preview-distance--
:desc "Size+" "+" #'scad-preview-size+
:desc "Size-" "-" #'scad-preview-size-
:desc "Distance+" "[" #'scad-preview-distance+
:desc "Distance-" "]" #'scad-preview-distance-
:desc "Toggle Projection" "p" #'scad-preview-projection
:desc "Translate x-" "h" #'scad-preview-translate-x-
:desc "Translate x+" "l" #'scad-preview-translate-x+
@ -674,12 +675,12 @@ Add the necessary hooks for LilyPond mode.
:desc "Translate y+" "k" #'scad-preview-translate-y+
:desc "Translate z-" "n" #'scad-preview-translate-z-
:desc "Translate z+" "m" #'scad-preview-translate-z+
:desc "Rotate x-" "C-h" #'scad-preview-rotate-x-
:desc "Rotate x+" "C-l" #'scad-preview-rotate-x+
:desc "Rotate y-" "C-j" #'scad-preview-rotate-y-
:desc "Rotate y+" "C-k" #'scad-preview-rotate-y+
:desc "Rotate z-" "C-n" #'scad-preview-rotate-z-
:desc "Rotate z+" "C-m" #'scad-preview-rotate-z+
:desc "Rotate x-" "H" #'scad-preview-rotate-x-
:desc "Rotate x+" "L" #'scad-preview-rotate-x+
:desc "Rotate y-" "J" #'scad-preview-rotate-y-
:desc "Rotate y+" "K" #'scad-preview-rotate-y+
:desc "Rotate z-" "N" #'scad-preview-rotate-z-
:desc "Rotate z+" "M" #'scad-preview-rotate-z+
)
#+end_src