Skip to content

Instantly share code, notes, and snippets.

@pellaeon
Last active January 19, 2019 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pellaeon/e5422b690552143de96b44a437fe79cd to your computer and use it in GitHub Desktop.
Save pellaeon/e5422b690552143de96b44a437fe79cd to your computer and use it in GitHub Desktop.
Rime default.yaml
patch:
schema_list:
- schema: luna_pinyin_tw
- schema: luna_pinyin
- schema: luna_pinyin_fluency
- schema: luna_pinyin_simp
"key_binder/bindings":
# Emacs style
- { when: composing, accept: Control+p, send: Up }
- { when: composing, accept: Control+n, send: Down }
- { when: composing, accept: Control+b, send: Left }
- { when: composing, accept: Control+f, send: Right }
- { when: composing, accept: Control+a, send: Home }
- { when: composing, accept: Control+e, send: End }
- { when: composing, accept: Control+d, send: Delete }
- { when: composing, accept: Control+k, send: Shift+Delete }
- { when: composing, accept: Control+h, send: BackSpace }
- { when: composing, accept: Control+g, send: Escape }
- { when: composing, accept: Control+bracketleft, send: Escape }
- { when: composing, accept: Alt+v, send: Page_Up }
- { when: composing, accept: Control+v, send: Page_Down }
# paging keys
- { when: composing, accept: ISO_Left_Tab, send: Page_Up }
- { when: composing, accept: Shift+Tab, send: Page_Up }
- { when: composing, accept: Tab, send: Page_Down }
- { when: has_menu, accept: minus, send: Page_Up }
- { when: has_menu, accept: equal, send: Page_Down }
- { when: paging, accept: comma, send: Page_Up }
- { when: has_menu, accept: period, send: Page_Down }
# hotkey switch
- { when: always, accept: Control+Shift+1, select: .next }
- { when: always, accept: Control+Shift+2, toggle: ascii_mode }
- { when: always, accept: Control+Shift+3, toggle: full_shape }
- { when: always, accept: Control+Shift+4, toggle: simplification }
- { when: always, accept: Control+Shift+5, toggle: extended_charset }
- { when: always, accept: Control+Shift+exclam, select: .next }
- { when: always, accept: Control+Shift+at, toggle: ascii_mode }
- { when: always, accept: Control+Shift+numbersign, toggle: full_shape }
- { when: always, accept: Control+Shift+dollar, toggle: simplification }
- { when: always, accept: Control+Shift+percent, toggle: extended_charset }
- { when: always, accept: Shift+space, toggle: full_shape }
- { when: always, accept: Control+period, toggle: ascii_punct }
--- default.yaml 2015-01-17 00:15:35.000000000 +0800
+++ /Library/Input Methods/Squirrel.app/Contents/SharedSupport/default.yaml 2019-01-01 21:59:11.000000000 +0800
@@ -1,14 +1,12 @@
# Rime default settings
# encoding: utf-8
-config_version: "0.36"
+config_version: "0.38.minimal"
schema_list:
- - schema: luna_pinyin_tw
- schema: luna_pinyin
- - schema: cangjie5
- - schema: luna_pinyin_fluency
- schema: luna_pinyin_simp
+ - schema: luna_pinyin_fluency
switcher:
caption: 〔方案選單〕
@@ -21,6 +19,9 @@
- ascii_punct
- simplification
- extended_charset
+ - zh_hant
+ - zh_hans
+ - zh_hant_tw
fold_options: true
abbreviate_options: true
option_list_separator: '/'
@@ -113,10 +114,11 @@
- { when: composing, accept: Control+bracketleft, send: Escape }
- { when: composing, accept: Alt+v, send: Page_Up }
- { when: composing, accept: Control+v, send: Page_Down }
- # paging keys
- - { when: composing, accept: ISO_Left_Tab, send: Page_Up }
- - { when: composing, accept: Shift+Tab, send: Page_Up }
- - { when: composing, accept: Tab, send: Page_Down }
+ # move by word
+ - { when: composing, accept: ISO_Left_Tab, send: Shift+Left }
+ - { when: composing, accept: Shift+Tab, send: Shift+Left }
+ - { when: composing, accept: Tab, send: Shift+Right }
+ # flip page
- { when: has_menu, accept: minus, send: Page_Up }
- { when: has_menu, accept: equal, send: Page_Down }
- { when: paging, accept: comma, send: Page_Up }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment