|
| 1 | +* KEYBINDINGS QWERTZ |
| 2 | + |
| 3 | +This is the example ~meow-setup~ function for Qwertz layout. |
| 4 | +Add it to your configuration and call it before ~(meow-global-mode 1)~. |
| 5 | + |
| 6 | + Meow Cheatsheet |
| 7 | + |
| 8 | +┏━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━━━┓ |
| 9 | +┃ ° │ ! │ " │ § │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │ BKSP ┃ |
| 10 | +┃ | | | | | | | | | | | | | ┃ |
| 11 | +┠─┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ |
| 12 | +┃ ^ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ ß │ ´ │ ┃ |
| 13 | +┃ | ex →1| ex →2| ex →3| ex →4| ex →5| ex →6| ex →7| ex →8| ex →9| ex →0| | | ┃ |
| 14 | +┠─────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────────┨ |
| 15 | +┃ TAB │ Q │ W │ E │ R │ T │ Z │ U │ I │ O │ P │ Ü │ * │ ┃ |
| 16 | +┃ | | | open ↑| open ↓| | | ←sym| ex ↑| sym→| pop-sel| | | ┃ |
| 17 | +┃ ├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ |
| 18 | +┃ │ q │ w │ e │ r │ t │ z │ u │ i │ o │ p │ ü │ + │ RET ┃ |
| 19 | +┃ | join| block| insert| append| del| search| ←word| ↑| word→| quit sel| ←indent| indent→| ┃ |
| 20 | +┠─────────────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┐ ┃ |
| 21 | +┃ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ö │ Ä │ ' │ ┃ |
| 22 | +┃ | ←sym→|goto-line| | | pop-grab|undo-tre…| ex ←| ex ↓| ex →| | │ │ ┃ |
| 23 | +┃ ├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ |
| 24 | +┃ │ a │ s │ d │ f │ g │ h │ j │ k │ l │ ö │ ä │ # │ ┃ |
| 25 | +┃ | ←word→| line| kill| chg| grab|undo-tre…| ←| ↓| →| +prefix | reverse | | ┃ |
| 26 | +┠───────────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────────┴───────┨ |
| 27 | +┃ │ > │ Y │ X │ C │ V │ B │ N │ M │ ; │ : │ _ │ ┃ |
| 28 | +┃ | | | | | yank-pop|split-li…| |sync-grab| ←thing→| [thing]| | ┃ |
| 29 | +┃ ├┄┄┄┄┄┄┄┄┄├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ |
| 30 | +┃ │ < │ y │ x │ c │ v │ b │ n │ m │ , │ . │ - │ ┃ |
| 31 | +┃ | | find| till| save| yank|open-line| |swap-grab| ←thing| thing→| visit| ┃ |
| 32 | +┗━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━╅─────────┴─────────┴─────────┴─────────╆━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━┛ |
| 33 | + ┃ SPC ┃ |
| 34 | + ┃ ┃ |
| 35 | + ┃ ┃ |
| 36 | + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
| 37 | + |
| 38 | +NOTE: |
| 39 | +ex means this command will expand current region. |
| 40 | +←thing→ (inner), [thing] (bounds), ←thing (begin) and thing→ (end) require a THING as input: |
| 41 | + round -> f square -> d curly -> s angle -> a string -> r |
| 42 | +paragraph -> v line -> c buffer -> x |
| 43 | + |
| 44 | +#+begin_src emacs-lisp |
| 45 | + (defun meow-setup () |
| 46 | + (setq meow-cheatsheet-physical-layout meow-cheatsheet-physical-layout-iso) |
| 47 | + (setq meow-cheatsheet-layout meow-cheatsheet-layout-qwertz) |
| 48 | + |
| 49 | + (meow-thing-register 'angle |
| 50 | + '(pair (";") (":")) |
| 51 | + '(pair (";") (":"))) |
| 52 | + |
| 53 | + (setq meow-char-thing-table |
| 54 | + '((?f . round) |
| 55 | + (?d . square) |
| 56 | + (?s . curly) |
| 57 | + (?a . angle) |
| 58 | + (?r . string) |
| 59 | + (?v . paragraph) |
| 60 | + (?c . line) |
| 61 | + (?x . buffer))) |
| 62 | + |
| 63 | + (meow-leader-define-key |
| 64 | + ;; Use SPC (0-9) for digit arguments. |
| 65 | + '("1" . meow-digit-argument) |
| 66 | + '("2" . meow-digit-argument) |
| 67 | + '("3" . meow-digit-argument) |
| 68 | + '("4" . meow-digit-argument) |
| 69 | + '("5" . meow-digit-argument) |
| 70 | + '("6" . meow-digit-argument) |
| 71 | + '("7" . meow-digit-argument) |
| 72 | + '("8" . meow-digit-argument) |
| 73 | + '("9" . meow-digit-argument) |
| 74 | + '("0" . meow-digit-argument) |
| 75 | + '("-" . meow-keypad-describe-key) |
| 76 | + '("_" . meow-cheatsheet)) |
| 77 | + |
| 78 | + (meow-normal-define-key |
| 79 | + ;; expansion |
| 80 | + '("0" . meow-expand-0) |
| 81 | + '("1" . meow-expand-1) |
| 82 | + '("2" . meow-expand-2) |
| 83 | + '("3" . meow-expand-3) |
| 84 | + '("4" . meow-expand-4) |
| 85 | + '("5" . meow-expand-5) |
| 86 | + '("6" . meow-expand-6) |
| 87 | + '("7" . meow-expand-7) |
| 88 | + '("8" . meow-expand-8) |
| 89 | + '("9" . meow-expand-9) |
| 90 | + '("ä" . meow-reverse) |
| 91 | + |
| 92 | + ;; movement |
| 93 | + '("i" . meow-prev) |
| 94 | + '("k" . meow-next) |
| 95 | + '("j" . meow-left) |
| 96 | + '("l" . meow-right) |
| 97 | + |
| 98 | + '("z" . meow-search) |
| 99 | + '("-" . meow-visit) |
| 100 | + |
| 101 | + ;; expansion |
| 102 | + '("I" . meow-prev-expand) |
| 103 | + '("K" . meow-next-expand) |
| 104 | + '("J" . meow-left-expand) |
| 105 | + '("L" . meow-right-expand) |
| 106 | + |
| 107 | + '("u" . meow-back-word) |
| 108 | + '("U" . meow-back-symbol) |
| 109 | + '("o" . meow-next-word) |
| 110 | + '("O" . meow-next-symbol) |
| 111 | + |
| 112 | + '("a" . meow-mark-word) |
| 113 | + '("A" . meow-mark-symbol) |
| 114 | + '("s" . meow-line) |
| 115 | + '("S" . meow-goto-line) |
| 116 | + '("w" . meow-block) |
| 117 | + '("q" . meow-join) |
| 118 | + '("g" . meow-grab) |
| 119 | + '("G" . meow-pop-grab) |
| 120 | + '("m" . meow-swap-grab) |
| 121 | + '("M" . meow-sync-grab) |
| 122 | + '("p" . meow-cancel-selection) |
| 123 | + '("P" . meow-pop-selection) |
| 124 | + |
| 125 | + '("x" . meow-till) |
| 126 | + '("y" . meow-find) |
| 127 | + |
| 128 | + '("," . meow-beginning-of-thing) |
| 129 | + '("." . meow-end-of-thing) |
| 130 | + '(";" . meow-inner-of-thing) |
| 131 | + '(":" . meow-bounds-of-thing) |
| 132 | + |
| 133 | + ;; editing |
| 134 | + '("d" . meow-kill) |
| 135 | + '("f" . meow-change) |
| 136 | + '("t" . meow-delete) |
| 137 | + '("c" . meow-save) |
| 138 | + '("v" . meow-yank) |
| 139 | + '("V" . meow-yank-pop) |
| 140 | + |
| 141 | + '("e" . meow-insert) |
| 142 | + '("E" . meow-open-above) |
| 143 | + '("r" . meow-append) |
| 144 | + '("R" . meow-open-below) |
| 145 | + |
| 146 | + '("h" . undo-only) |
| 147 | + '("H" . undo-redo) |
| 148 | + |
| 149 | + '("b" . open-line) |
| 150 | + '("B" . split-line) |
| 151 | + |
| 152 | + '("ü" . indent-rigidly-left-to-tab-stop) |
| 153 | + '("+" . indent-rigidly-right-to-tab-stop) |
| 154 | + |
| 155 | + ;; ignore escape |
| 156 | + '("<escape>" . ignore))) |
| 157 | +#+end_src |
0 commit comments