trime icon indicating copy to clipboard operation
trime copied to clipboard

关于.custom.yaml配置补丁中对按键功能的配置格式问题

Open controlledentropy opened this issue 2 years ago • 1 comments

Describe the bug 3本人当前使用默认trime风格26键默认布局,使用trime.custom.yaml对按键进行了配置改动。当修改到按键功能布局部分时,发现使用"@<keyNo>/":逐项配置是可稳定覆盖默认配置。但当使用默认配置方式(即大括号包含的一组键值对指定按键的所有配置)时,部分配置不生效(例如按键长度,label大小)。有时调整键值对在大括号内的排布次序可以影响按键属性生效与否。但当前发现使用大括号的方式对shift按键完全无效,只能对每个属性都编写一条单独的全路径配置。

To Reproduce Steps to reproduce the bug:

  1. 例如在trime.custom.yaml文件中的patch下添加如下配置: "preset_keyboards/qwerty/keys/@33": {label: '🙊', key_text_size:30, click: space, swipe_up: "", width: 30} 这条配置可以完全生效,但key_text_size:30之前放置在靠后的位置便无法生效
  2. 而接着对left shift件添加如下配置: "preset_keyboards/qwerty/keys/@21": {width: 1, click: 123, send_bindings: false} 这条配置无法生效,但对单个属性作以配置就可以生效: "preset_keyboards/qwerty/keys/@21/width": 1

Expected behavior 希望可以正常使用大括号包含所有属性键值对的方式来进行补丁式自定义,缩减自定义键盘键位的配置篇幅。

Log If applicable, add crash log to quick focus your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: XiaoMi Poco f2 Pro(lmipro)

  • OS: crdoird9.5(android13.0)

  • Theme: Trime

  • Version: 3.2.9-3.2.12

  • Build info:

    version 3.2.12 com.osfans.trime.debug versionCode 20230501 targetSdk 33 minSdk 21 Installed: Jun 11, 2023; 18:43 Build: Commit CI Date: 2022-06-12 10:09 UTC Commit: v3.2.6-58-gd9b4c1f, 2022-06-12 17:58:14 +0800 Branch: develop Repository: https://github.com/osfans/trime

Additional context 3.2.12的部署速度与3.2.9相比显著降低,且应用设置条目经常需要重新冷启动app才能正常使用(比如主题菜单为空,需要重启才能看到trime和tongwenfeng)

controlledentropy avatar Jun 11 '23 11:06 controlledentropy

对了,从3.2.10起,输入卡顿感非常明显,感觉到吃力。尝试调整悬浮窗为完全透明和完全不透明(企图降低渲染压力),目测并没有显著改变,即使打单字也非常卡(候选页悬浮窗出现时间迟,不跟手)

3.2.9相比要好很多,即使保持默认的悬浮窗透明效果

也在使用远古版本3.1.3二次开发的arime(同文无障碍),输入真的非常傻快,和其他输入法一样的体验

controlledentropy avatar Jun 11 '23 11:06 controlledentropy