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

状态变更的文字提示,应该还有后续 #554

Closed
lotem opened this issue Jun 10, 2022 · 4 comments
Closed

状态变更的文字提示,应该还有后续 #554

lotem opened this issue Jun 10, 2022 · 4 comments
Assignees

Comments

@lotem
Copy link
Member

lotem commented Jun 10, 2022

应该还有后续啊。

状态选项里的单选状态组现在不支持通过快捷键切换,用不上这么好的文字提示,我准备把快捷键单选功能做好。

另外,我打算把 Control+Shift+2 等快捷键
https://github.com/rime/rime-prelude/blob/master/key_bindings.yaml#L45

    - { when: always, accept: Control+Shift+2, toggle: ascii_mode }
    - { when: always, accept: Control+Shift+3, toggle: full_shape }
    - { when: always, accept: Control+Shift+4, toggle: simplification }
    - { when: always, accept: Control+Shift+5, toggle: extended_charset }

重新定义为

    - { when: always, accept: Control+Shift+2, toggle: '@0' }
    - { when: always, accept: Control+Shift+3, toggle: '@1' }
    - { when: always, accept: Control+Shift+4, toggle: '@2' }
    - { when: always, accept: Control+Shift+5, toggle: '@3' }

指改变方案中 switches/@0 等处定义的状态。这样的配置就通用了。兼容方案自定义的状态。

@x 如果不是开关而是单项选择状态组,最好不必改动词 toggle,让他轮换到下一个状态。免得还得专门改快捷键配置。

Originally posted by @lotem in #553 (comment)

@lotem
Copy link
Member Author

lotem commented Jun 10, 2022

@LEOYoon-Tsaw 快来参谋

@lotem lotem self-assigned this Jun 10, 2022
@LEOYoon-Tsaw
Copy link
Member

如果是狀態組,可以用set_optionunset_option來設定快捷鍵吧,當然加個輪換功能也是很好的
ascii_mode等爲@0等的意義何在?爲了區分內置開關和用戶自訂開關嗎?

@lotem
Copy link
Member Author

lotem commented Jun 11, 2022

如果是狀態組,可以用set_optionunset_option來設定快捷鍵吧,當然加個輪換功能也是很好的

现在不能用一条指令完成单选。选取一项时要同时对同组的其他项取消选中状态。

ascii_mode等爲@0等的意義何在?爲了區分內置開關和用戶自訂開關嗎?

支持方案里定义的状态顺序和种类,不需要根据方案对开关的设置不同一一定义快捷键。

@LEOYoon-Tsaw
Copy link
Member

现在不能用一条指令完成单选。选取一项时要同时对同组的其他项取消选中状态。

那只要使set_option自動反選其它選項即可吧,以及unset_option自動選上reset

支持方案里定义的状态顺序和种类,不需要根据方案对开关的设置不同一一定义快捷键。

這個挺有意思,增加這種配置方式,不要取代原有配置方式就好

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

Successfully merging a pull request may close this issue.

2 participants