-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add qwertz layout * Add qwertz documentation
- Loading branch information
1 parent
61a67cb
commit 574d63f
Showing
3 changed files
with
256 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
* KEYBINDINGS QWERTZ | ||
|
||
This is the example ~meow-setup~ function for Qwertz layout. | ||
Add it to your configuration and call it before ~(meow-global-mode 1)~. | ||
|
||
Meow Cheatsheet | ||
|
||
┏━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━━━┓ | ||
┃ ° │ ! │ " │ § │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │ BKSP ┃ | ||
┃ | | | | | | | | | | | | | ┃ | ||
┠─┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ | ||
┃ ^ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ ß │ ´ │ ┃ | ||
┃ | ex →1| ex →2| ex →3| ex →4| ex →5| ex →6| ex →7| ex →8| ex →9| ex →0| | | ┃ | ||
┠─────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────────┨ | ||
┃ TAB │ Q │ W │ E │ R │ T │ Z │ U │ I │ O │ P │ Ü │ * │ ┃ | ||
┃ | | | open ↑| open ↓| | | ←sym| ex ↑| sym→| pop-sel| | | ┃ | ||
┃ ├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ | ||
┃ │ q │ w │ e │ r │ t │ z │ u │ i │ o │ p │ ü │ + │ RET ┃ | ||
┃ | join| block| insert| append| del| search| ←word| ↑| word→| quit sel| ←indent| indent→| ┃ | ||
┠─────────────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┐ ┃ | ||
┃ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ö │ Ä │ ' │ ┃ | ||
┃ | ←sym→|goto-line| | | pop-grab|undo-tre…| ex ←| ex ↓| ex →| | │ │ ┃ | ||
┃ ├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ | ||
┃ │ a │ s │ d │ f │ g │ h │ j │ k │ l │ ö │ ä │ # │ ┃ | ||
┃ | ←word→| line| kill| chg| grab|undo-tre…| ←| ↓| →| +prefix | reverse | | ┃ | ||
┠───────────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────┬───┴─────────┴───────┨ | ||
┃ │ > │ Y │ X │ C │ V │ B │ N │ M │ ; │ : │ _ │ ┃ | ||
┃ | | | | | yank-pop|split-li…| |sync-grab| ←thing→| [thing]| | ┃ | ||
┃ ├┄┄┄┄┄┄┄┄┄├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┤ ┃ | ||
┃ │ < │ y │ x │ c │ v │ b │ n │ m │ , │ . │ - │ ┃ | ||
┃ | | find| till| save| yank|open-line| |swap-grab| ←thing| thing→| visit| ┃ | ||
┗━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━╅─────────┴─────────┴─────────┴─────────╆━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━┛ | ||
┃ SPC ┃ | ||
┃ ┃ | ||
┃ ┃ | ||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
||
NOTE: | ||
ex means this command will expand current region. | ||
←thing→ (inner), [thing] (bounds), ←thing (begin) and thing→ (end) require a THING as input: | ||
round -> f square -> d curly -> s angle -> a string -> r | ||
paragraph -> v line -> c buffer -> x | ||
|
||
#+begin_src emacs-lisp | ||
(defun meow-setup () | ||
(setq meow-cheatsheet-physical-layout meow-cheatsheet-physical-layout-iso) | ||
(setq meow-cheatsheet-layout meow-cheatsheet-layout-qwertz) | ||
|
||
(meow-thing-register 'angle | ||
'(pair (";") (":")) | ||
'(pair (";") (":"))) | ||
|
||
(setq meow-char-thing-table | ||
'((?f . round) | ||
(?d . square) | ||
(?s . curly) | ||
(?a . angle) | ||
(?r . string) | ||
(?v . paragraph) | ||
(?c . line) | ||
(?x . buffer))) | ||
|
||
(meow-leader-define-key | ||
;; Use SPC (0-9) for digit arguments. | ||
'("1" . meow-digit-argument) | ||
'("2" . meow-digit-argument) | ||
'("3" . meow-digit-argument) | ||
'("4" . meow-digit-argument) | ||
'("5" . meow-digit-argument) | ||
'("6" . meow-digit-argument) | ||
'("7" . meow-digit-argument) | ||
'("8" . meow-digit-argument) | ||
'("9" . meow-digit-argument) | ||
'("0" . meow-digit-argument) | ||
'("-" . meow-keypad-describe-key) | ||
'("_" . meow-cheatsheet)) | ||
|
||
(meow-normal-define-key | ||
;; expansion | ||
'("0" . meow-expand-0) | ||
'("1" . meow-expand-1) | ||
'("2" . meow-expand-2) | ||
'("3" . meow-expand-3) | ||
'("4" . meow-expand-4) | ||
'("5" . meow-expand-5) | ||
'("6" . meow-expand-6) | ||
'("7" . meow-expand-7) | ||
'("8" . meow-expand-8) | ||
'("9" . meow-expand-9) | ||
'("ä" . meow-reverse) | ||
|
||
;; movement | ||
'("i" . meow-prev) | ||
'("k" . meow-next) | ||
'("j" . meow-left) | ||
'("l" . meow-right) | ||
|
||
'("z" . meow-search) | ||
'("-" . meow-visit) | ||
|
||
;; expansion | ||
'("I" . meow-prev-expand) | ||
'("K" . meow-next-expand) | ||
'("J" . meow-left-expand) | ||
'("L" . meow-right-expand) | ||
|
||
'("u" . meow-back-word) | ||
'("U" . meow-back-symbol) | ||
'("o" . meow-next-word) | ||
'("O" . meow-next-symbol) | ||
|
||
'("a" . meow-mark-word) | ||
'("A" . meow-mark-symbol) | ||
'("s" . meow-line) | ||
'("S" . meow-goto-line) | ||
'("w" . meow-block) | ||
'("q" . meow-join) | ||
'("g" . meow-grab) | ||
'("G" . meow-pop-grab) | ||
'("m" . meow-swap-grab) | ||
'("M" . meow-sync-grab) | ||
'("p" . meow-cancel-selection) | ||
'("P" . meow-pop-selection) | ||
|
||
'("x" . meow-till) | ||
'("y" . meow-find) | ||
|
||
'("," . meow-beginning-of-thing) | ||
'("." . meow-end-of-thing) | ||
'(";" . meow-inner-of-thing) | ||
'(":" . meow-bounds-of-thing) | ||
|
||
;; editing | ||
'("d" . meow-kill) | ||
'("f" . meow-change) | ||
'("t" . meow-delete) | ||
'("c" . meow-save) | ||
'("v" . meow-yank) | ||
'("V" . meow-yank-pop) | ||
|
||
'("e" . meow-insert) | ||
'("E" . meow-open-above) | ||
'("r" . meow-append) | ||
'("R" . meow-open-below) | ||
|
||
'("h" . undo-only) | ||
'("H" . undo-redo) | ||
|
||
'("b" . open-line) | ||
'("B" . split-line) | ||
|
||
'("ü" . indent-rigidly-left-to-tab-stop) | ||
'("+" . indent-rigidly-right-to-tab-stop) | ||
|
||
;; ignore escape | ||
'("<escape>" . ignore))) | ||
#+end_src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters