-
Notifications
You must be signed in to change notification settings - Fork 452
Add support for hiding candidate list via Rime option _hide_candidate #1073
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
Add support for hiding candidate list via Rime option _hide_candidate #1073
Conversation
|
Looks fine to me, what do you think? @lotem |
lotem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
只隐藏候选字,仍会在候选窗显示 preedit 对吗?
lotem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
很好很强大。
|
小狼毫能支持吗?刚刚体验了确实很棒,单位电脑是win,希望小狼毫也能支持。 |
抱歉,由于我自己没有用小狼毫,自己调试起来不太方便,所以我暂时无能为力 |
https://github.com/MokOopsing/weasel/actions/runs/20123457964 帮忙试试这里的产物?我已向小狼毫提了pr,不过我自己没有机器验证修改 |
|
這個實現不太環保。 每次顯示候選字都要先查這個選項,要做兩次 map 查詢(Session、Option)。影響了不開這個選項時的性能! |
確實,應該在加載配置的時候讀進內存,但是最近沒時間寫 |
這個想法不錯。 前端可以通過回調監視選項的修改。 在 librime 的 API 裏檢查是不是也行。直接不往 |
那么改librime api吧,然后回退这笔,免得一个端一个端地PR |
做了此类尝试,发现值更新并没有如预期的及时 |




This pull request introduces the ability to control whether the candidate list is displayed through a Rime option (_hide_candidate). This feature was originally implemented in Trime.
When the option is enabled, Squirrel will skip populating and showing the candidate list, allowing users or schemas to dynamically hide candidates without relying on theme configuration.
Usage Example
If the name _hide_candidate is not suitable, feel free to rename it to a more appropriate one.