We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果直接在*.schema.yaml上更改,每次更新都会被覆盖,因此想到了用*.custom.yaml的方式来记录自定义设置,然而却发现无法生效。
经研究发现,根据 https://github.com/rime/home/wiki/Configuration#%E8%87%AA%E5%8B%95%E6%87%89%E7%94%A8%E8%A3%9C%E9%9D%AA 所说,当yaml的根节点有__patch指令时,不会自动添加*.custom.yaml作为patch,因此需要修改现有schema,在根节点__patch下手动引入*.custom.yaml,以moqi_ms方案为例:
__patch: - user_dict_set/prism: moqi_ms add_user_dict/prism: moqi_ms big_char_set/prism: moqi_big_ms - moqi_ms.custom:/patch?
改成这样就能正常使用moqi_ms.custom.yaml来调整方案了。
望予以考虑,谢谢!
The text was updated successfully, but these errors were encountered:
好的 我下次改下
Sorry, something went wrong.
感谢 辛苦
为什么我在__patch: 下加入了相关的内容,补丁文件还是不生效呢, 怎么弄它都没有生效,我不知道是我那里出问题了吗?
@xcc3306 因为格式没对,加的内容必须是一个独立的list item。所以要先把原有内容缩进一档,在第一行前面加-,然后再加- xxx.custom:/patch?(不要有空格)。可以仔细看看我的代码段。
- xxx.custom:/patch?
No branches or pull requests
如果直接在*.schema.yaml上更改,每次更新都会被覆盖,因此想到了用*.custom.yaml的方式来记录自定义设置,然而却发现无法生效。
经研究发现,根据 https://github.com/rime/home/wiki/Configuration#%E8%87%AA%E5%8B%95%E6%87%89%E7%94%A8%E8%A3%9C%E9%9D%AA 所说,当yaml的根节点有__patch指令时,不会自动添加*.custom.yaml作为patch,因此需要修改现有schema,在根节点__patch下手动引入*.custom.yaml,以moqi_ms方案为例:
改成这样就能正常使用moqi_ms.custom.yaml来调整方案了。
望予以考虑,谢谢!
The text was updated successfully, but these errors were encountered: