-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjoy.default.yaml
56 lines (49 loc) · 3.05 KB
/
joy.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
# encoding: utf-8
# 在用户使用「输入法设定」调整设置时,小狼毫会格式化 default.custom.yaml,删除所有注释。
# 目前建议的自定义方法:在此文件修改,之后在 default.custom.yaml 用 `__include` 引入。示例 default.custom.yaml 如下:
# patch:
# __include: 'joy.default:/'
#
# 说明:Rime 缺省设置
# 网址:https://github.com/Lantaio/Rime-schema-JoySchema
# 作者:Lantaio Joy
# 版本:2.1.7
# 更新:2024/8/27
key_binder:
bindings:
__patch:
- 'joy.keybindings:/paging_with_period_greater'
- 'joy.keybindings:/select_with_comma_semicolon_slash'
- 'joy.keybindings:/numbered_mode_switch'
- 'key_bindings:/move_by_word_with_tab'
# - 'key_bindings:/emacs_editing'
menu:
alternative_select_keys: ".,;/" # 自定义候选项上屏的按键序列,此设置只为改变标签,实际起作用的设置在joy.keybindings文件。
page_size: 4 # 候选窗口的候选项个数
punctuator:
__include: 'joy.symbols:/punctuator' # 导入扩展符号表
recognizer/patterns:
# 中英混输时须要屏蔽默认设置中的uppercase规则
cn_numerals: '^\$[0-9]+[.]?[0-9]*$' # '>'开头触发中文数字、金额
coding: '^([{[][^.,;/]|<[^.,;>]).*$' # ‘{’、‘[’、‘<’开头可触发输入英文程序代码
email: '^[A-Za-z][-_.0-9A-Za-z]*@.*$'
mac_path: '^/[^,;].*$' # ‘/’开头触发输入 Linux 或 Mac目录路径
win_path: '^([A-Za-z]:|[A-Za-z][^.,;>/[\]]*|\\[^,;/]*)(\\.*)*$' # ‘X:’或‘\’开头触发输入Windows目录路径(限制:第1个目录名不能有‘[’和‘]’号,和以词定字功能冲突)。此规则让数字也成为输入码,禁用数字上屏候选项的默认功能。 此规则修复了用句号键翻页后继续补全拼音会变成输入网址的问题。
punct: '^\^([0-9]0?|[A-Za-z]+)$' # ‘^’开头触发输入扩展符号
reverse_lookup: "\\|[a-z]*'?$" # '|'开头触发笔画查拼音
url: '^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$'
'switcher/caption': '~Rime选项菜单~'
'switcher/hotkeys':
- 'Control+8' # 打开选项菜单的快捷键(候选:Control+Shift+asterisk)
'ascii_composer/switch_key/Shift_L': noop # 无操作,FinalD/终点插件须要禁用此键切换功能。
'ascii_composer/switch_key/Shift_R': noop # 无操作,FinalD/终点插件须要禁用此键切换功能。
'ascii_composer/switch_key/Control_R': inline_ascii # 中/英输入模式切换。如果候选框已有输入码,则临时切换为英文输入模式,上屏后恢复为中文输入模式。
# ascii_composer:
# good_old_caps_lock: true # true | false
# switch_key:
# Shift_L: inline_ascii # commit_code | commit_text | inline_ascii | clear | noop
# Shift_R: commit_text # commit_code | commit_text | inline_ascii | clear | noop
# Control_L: noop # commit_code | commit_text | inline_ascii | clear | noop
# Control_R: noop # commit_code | commit_text | inline_ascii | clear | noop
# Caps_Lock: clear # commit_code | commit_text | clear
# Eisu_toggle: clear