-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.custom.yaml
172 lines (171 loc) · 5.96 KB
/
default.custom.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Alynx Zhou <[email protected]> (https://alynx.one/)
# 我一开始以为 RIME 这个 a/b/c 的 patch 语法和展开了写 YAML 是一样的。结果不一样,a/b/c 是只
# patch c,展开了则变成了 patch a。感谢 Arch Linux CN 群里的 @akiirui 帮我解惑。
#
# 我说佛老师对不起对不起,我不懂规矩。
patch:
schema_list:
# 内置的朙月拼音简化字模式
- schema: "luna_pinyin_simp"
# 听说极光拼音更好,不要忘了安装 AUR 包 `rime-aurora-pinyin`。
- schema: "aurora_pinyin"
# - `inline_ascii` 在输入法的编辑区输入英文,上屏后回到中文,我是从来不用。
# - `commit_text` 候选上屏并切换至英文。
# - `commit_code` 拼音上屏并切换至英文。
# - `clear` 清除候选并切换至英文。
# - `noop` 屏蔽此按键。
# 如果你设置 `Caps_Lock` 为 `noop`,一个奇怪的问题是退格键不能用了,除非取消大写锁定。
# `Shift` 切换中英文是大部分输入法的默认逻辑。
ascii_composer/switch_key/Shift_L: "commit_code"
ascii_composer/switch_key/Shift_R: "commit_code"
# 模拟 macOS 上大写锁定切换中英文的行为:大写锁定激活时切换英文模式,不过我们做不到长按进入全大写模式。
# 这样我就不用在不同电脑上记不同的键位了。
ascii_composer/switch_key/Caps_Lock: "commit_code"
# `true` 表示大写锁定输出大写字母,`false` 表示输出小写字母,反正我习惯按 `Shift` 输入大写字母。
ascii_composer/good_old_caps_lock: false
# 改掉原来的繁体字标题。
switcher/caption: "【设置菜单】"
# 用半角斜线而不是奇丑无比的全角斜线做分隔符。
switcher/option_list_separator: "/"
# 屏蔽 `Ctrl-s` 开启菜单,只允许 `Ctrl-\`` 和 `F4`。
switcher/hotkeys:
# - "Control+s"
- "Control+grave"
- "F4"
# 每页 5 个候选有点太少了。
menu/page_size: 9
# 这里修改的是整个输入法全局的键位,某些输入方案有自己的键位可以单独覆盖,但我暂时不需要。
# Emacs 键位,我喜欢。
# 可是谁给我解释一下为什么 Left 是按字拼音跳而 Right 是按字母跳?
key_binder/bindings:
# 我几乎不用繁体,只是记录一下可以这么写,而且朙月拼音简化版的简繁开关名字和普通的不一样。
# - accept: "F5"
# toggle: "zh_simp"
# when: "always"
- 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: "Alt+b"
send: "Shift+Left"
when: "composing"
- accept: "Alt+f"
send: "Shift+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: "Alt+h"
send: "Shift+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"
when: "composing"
# 正常人不会用 Tab 切换拼音光标的,相信我。用它切换选项更快。
# - accept: "ISO_Left_Tab"
# send: "Shift+Left"
# when: "composing"
# - accept: "Shift+Tab"
# send: "Shift+Left"
# when: "composing"
# - accept: "Tab"
# send: "Shift+Right"
# when: "composing"
- accept: "Tab"
send: "Down"
when: "has_menu"
- accept: "ISO_Left_Tab"
send: "Up"
when: "has_menu"
# 鬼知道为什么这个也用不了!
- accept: "Shift+Tab"
send: "Up"
when: "has_menu"
- accept: "minus"
send: "Page_Up"
when: "has_menu"
- accept: "equal"
send: "Page_Down"
when: "has_menu"
- accept: "bracketleft"
send: "Page_Up"
when: "has_menu"
- accept: "bracketright"
send: "Page_Down"
when: "has_menu"
# 我觉得正常人不应该用逗号和句号翻页。
# - accept: "comma"
# send: "Page_Up"
# when: "paging"
# - accept: "period"
# send: "Page_Down"
# when: "has_menu"
# 鬼才记得住这么多乱七八糟的快捷键,我翻菜单比背这玩意快多了。
# - 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"
# when: "always"
# 朙月拼音现在根本不加载 default 里面的标点候选表,所以这部分移动到朙月拼音的设置里面去了。