Skip to content
New issue

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

weasel 0.10.0版本里候选字不显示序号 #147

Closed
zgdlime opened this issue Mar 22, 2018 · 8 comments
Closed

weasel 0.10.0版本里候选字不显示序号 #147

zgdlime opened this issue Mar 22, 2018 · 8 comments

Comments

@zgdlime
Copy link

zgdlime commented Mar 22, 2018

weasel 0 10 0
weasel 0.10.0版本里候选字不显示序号:
1\重起、重装都不行。
2\设置default.yaml无效。
menu:
__page_size: 5
__alternative_select_keys: 12345
3\请指教,谢谢。

@imlijh
Copy link

imlijh commented Mar 22, 2018

I think rime/librime#193 fixes this bug. For a simple fix, try creating a directory named "trash" in your user directory and then re-deploy weasel.

@JokerQyou
Copy link

JokerQyou commented Mar 23, 2018

I already have a folder named trash in Rime user folder, and simply re-deploy weasel could not fix this.

I'm using weasel 0.10.0 like this:

  • All my weasel .custom.yaml files are stored within a git repository;
  • Open a cmd.exe window and navigate to Rime user folder;
  • I then execute mklink weasel.custom.yaml X:\my_repo\rime\weasel.custom.yaml to create a symlink;

And if I ever need to configure weasel on a new machine, I just clone my git repo and create symlink for weasel.custom.yaml and re-deploy again.

The last time I managed to fix this issue, it was like this:

  • Remove and recreate the symlink weasel.custom.yaml from Rime user folder;
  • Re-deploy weasel. Now weasel should load and use default settings;
  • Re-create the symlink weasel.custom.yaml pointing to your custom settings;
  • Re-deploy weasel again. Now it should pick up your custom settings, and also temporarily fix this issue;

I say it temporarily fix this issue because it will come back once you reboot.

@nameoverflow
Copy link
Member

用户文件夹下 build 文件夹中的 weasel.yaml 是否有 label_format 一项?
没有的话在用户文件夹 weasel.custom.yaml 中加入 style/label_format: "%s."

@lotem
Copy link
Member

lotem commented Mar 23, 2018

Fixed by rime/librime#193

librime 1.3 不會主動覆蓋(移除)用戶文件夾下的同名文件,導致新版本的配置不生效。
請退回到上一個版本。或手動刪除用戶文件夾下非用戶創建的 YAML 文件。

@lotem
Copy link
Member

lotem commented Mar 23, 2018

@nameoverflow @Prcuvu 候選序號程序裏應該有默認值。同時還需要支持自定義爲空串(不顯示序號)。這兩種情況可以判別嘛?

@nameoverflow
Copy link
Member

@lotem 按照 custom patch 的理念现在这样的行为我觉得是没问题的。

@lotem
Copy link
Member

lotem commented Mar 23, 2018

那就在程序裏加上默認樣式吧。

@Prcuvu
Copy link
Contributor

Prcuvu commented Mar 23, 2018

好。

@Prcuvu Prcuvu closed this as completed in 4374d24 Mar 23, 2018
nameoverflow pushed a commit to nameoverflow/weasel that referenced this issue Mar 25, 2018
If weasel.yaml is not updated to include style/label_format due to issue
of librime 1.3.0, fallback to default value initialized with WeaselUI's
construction.

Fixes rime#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants