-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathdefault.yaml
108 lines (93 loc) · 4.13 KB
/
default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Rime default settings
# encoding: utf-8
config_version: "2023-12-18"
schema_list:
- schema: lufs_flypy # 小鹤双拼
- schema: lufs_pinyin # 朙月拼音
# - schema: lufs_mspy # 微软双拼
# - schema: lufs_dpy # 自然码双拼
# - schema: lufs_pyjj # 拼音加加双拼
switcher:
caption: "[方案菜单]"
hotkeys:
- F2
save_options:
- full_shape
- ascii_punct
- traditionalization
- emoji_suggestion
fold_options: true
abbreviate_options: true
option_list_separator: "/"
menu:
page_size: 4
punctuator:
full_shape:
__include: lufs_symbols:/punctuator/full_shape
half_shape:
__include: lufs_symbols:/punctuator/half_shape
recognizer:
patterns:
# 禁止部分输入的自动上屏
camel: "[a-z]+[A-Z].*$" # 驼峰命名
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$" # email 地址
html: "^<[a-z]+>$" # HTML TAG
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" # 大写开头
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$" # URL 输入
# 响应功能
punct: "^/([0-9]0?|[A-Za-z]+)$" # 响应 lufs_symbols.yaml 内的输入
unicode: "^U[a-f0-9]+" # 响应 Unicode
ascii_composer:
good_old_caps_lock: true
switch_key:
Shift_L: noop
Shift_R: commit_code # macOS 上此项无效,Windows 可用右 Shift 切换中英输入
Control_L: noop
Control_R: noop # macOS 上此项无效,Windows 上可自行定义
Caps_Lock: commit_code
Eisu_toggle: clear
key_binder:
select_first_character: "bracketleft" # lua 选词快捷键,选第一个字
select_last_character: "bracketright" # lua 选词快捷键,选最后一个字
bindings:
# Tab / Shift + Tab 翻页
- { when: composing, accept: Tab, send: Page_Down } # Tab 向下翻页
- { when: composing, accept: Shift+Tab, send: Page_Up } # Shift + Tab 向上翻页
# = / - 翻页
- { when: has_menu, accept: equal, send: Page_Down } # = 向下翻页
- { when: has_menu, accept: minus, send: Page_Up } # - 向上翻页
# . / , 翻页
# 需要注释掉部分冲突的正则匹配才可用,详情见: https://github.com/LufsX/rime/issues/15#issuecomment-1496011933
# - { when: paging, accept: period, send: Page_Down } # 句号向下翻页
# - { when: paging, accept: comma, send: Page_Up } # 逗号向上翻页
# ] / [ 翻页
# 失效设置,可通过关闭/更改 lua 选词的快捷键恢复
# - { when: paging, accept: bracketright, send: Page_Down } # 右括号向下翻页
# - { when: paging, accept: bracketleft, send: Page_Up } # 左括号向上翻页
# 候选操作
# ; 二选 ' 三选
- { when: has_menu, accept: semicolon, send: 2 } # 输入时「;」二选
# - { when: has_menu, accept: apostrophe, send: 3 } # 输入时「'」三选
# Rime key bindings
# numbered mode switch
# - { when: always, accept: Control+Shift+1, select: .next } # 切换下一个方案
# - { when: always, accept: Control+Shift+2, toggle: full_shape } # 切换全角半角
# - { when: always, accept: Control+Shift+3, toggle: ascii_punct } # 切换中英标点
# - { when: always, accept: Control+Shift+4, toggle: traditionalization } # 切换简繁
# - { when: always, accept: Control+Shift+5, toggle: emoji_suggestion } # 切换是否显示 Emoji
# Rime key bindings
# emacs_editing
# - { 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: Control+y, send: Page_Up }
# - { when: composing, accept: Alt+v, send: Page_Up }
# - { when: composing, accept: Control+v, send: Page_Down }