rime / plum

東風破 /plum/: Rime configuration manager and input schema repository
GNU Lesser General Public License v3.0
1.41k stars 140 forks source link

【咨询】两个patch如果有相同的 Key应该如何处理 #67

Open vlaw opened 8 months ago

vlaw commented 8 months ago

有如下的俩个文件

# patch#1: emoji_suggestion
patch:
  switches/@next:
    name: emoji_suggestion
    reset: 1
    states: ["🈚️", "🈶️"]
# patch#2: symbol_suggestion
patch:
  switches/@next: # 猜测是先合并
    name: symbol_support
    reset: 1
    states: [ "无符", "符" ]
__patch:
  - patch/+:
      __include: emoji_suggestion:/patch
 - patch/+:
      __include: symbol_suggestion:/patch

预期:都以 追加的方式合并的编译后的文件中 实际效果:后者覆盖了前者