iDvel / rime-ice

Rime 配置:雾凇拼音 | 长期维护的简体词库
https://dvel.me/posts/rime-ice/
GNU General Public License v3.0
8.98k stars 607 forks source link

添加对history_translator的支持无法生效 #1011

Closed jackywu closed 1 week ago

jackywu commented 2 weeks ago

arch linux上,安装了fcitx5-rime, 在$HOME/.local/share/fcitx5/rime中添加文件 rime_ice.custom.yaml, 内容如下

patch:
  engine/translators/+:
    - history_translator@repeat_last_input # 重复上一次的输入

  # 重复上一次输入
  repeat_last_input:
    input: z
    size: 1
    initial_quality: 1000

重新部署,按z or zz 均无法生效。

作为case control test,我添加了clover pinyin,在文件clover.custom.yaml中添加同样的内容,重新部署后按z就可以自动出现上次的输入内容。

请教,在ice中怎么弄才行呢?另外,顺便请教一下,arch linux下的rime log在哪里,我google了好久都没有找到。

mirtlebot commented 2 weeks ago

重新部署,按 z or zz 均无法生效。

可能是这两个是正常的拼音编码,被后续的 filter 提权、降权和置顶了,导致相关的候选排在了后面。我使用 ZZ 是没问题的(P.S. 大写 Z 也是一个编码)。

arch linux下的rime log在哪里

ibus-rime 的 log 在 /tmp/rime*,fcitx5-rime log 不写入文件,要手动调。

jackywu commented 2 weeks ago

重新部署,按 z or zz 均无法生效。

可能是这两个是正常的拼音编码,被后续的 filter 提权、降权和置顶了,导致相关的候选排在了后面。我使用 ZZ 是没问题的(P.S. 大写 Z 也是一个编码)。

arch linux下的rime log在哪里

ibus-rime 的 log 在 /tmp/rime*,fcitx5-rime log 不写入文件,要手动调。

多谢分享, fcitx5-rime log 要手动调 是怎么调?


patch:
  engine/translators/+:
    - history_translator@repeat_last_input # 重复上一次的输入

  # 重复上一次输入
  repeat_last_input:
    input: Z
    size: 1
    initial_quality: 1000

我也尝试改成Z作为触发键,也没用,遗憾了。

mirtlebot commented 2 weeks ago

Z 在这个配置里面是正常编码,要 ZZ。

jackywu commented 1 week ago

Z 在这个配置里面是正常编码,要 ZZ。

感谢,问题解决了。