rime / rime-prelude

Essential files for building up your Rime configuration
GNU Lesser General Public License v3.0
58 stars 24 forks source link

feat(default.yaml): new shortcuts to toggle options #2

Closed lotem closed 5 years ago

lotem commented 7 years ago

Shift+space: toggles ascii_mode // not Control+space because it is a system shortcut, on some old systems Control+symbols[,./\]: toggles other options...

Pros: easier to use than Control+Shift+number; Shift+space cannot be triggered by accident as 'Shift+Release' always does. Cons: may conflict with some app shortcuts.

lotem commented 7 years ago

Anyone interested in this setup? @kunki @LEOYoon-Tsaw @osfans @Patricivs @Prcuvu @zcunlin

lotem commented 7 years ago

@Prcuvu On Shift+space: it might not be a good idea to change its meaning, but I'm still considering another change in the engine to make this combination even more useful.

Problems with the current setup:

I want to copy the behavior of macOS's IME switch key, which is by default assigned to Control+space. By continuously holding Control key after pressing space, a menu containing all enabled IMEs is displayed in the middle of screen, and subsequent space key presses loop over them. Up/Down array keys can also be used while holding Control. The menu goes away when releasing Control key.

Shift+space can serve Rime the same purpose and in a similar manner, but for a menu of options defined in Rime schema instead of system level IMEs. The menu may look like:

輸入方案名(提示行)
[中文 → 西文]
 半角 → 全角
 漢字 → 汉字
 變更輸入方案…

In my new design, this menu is only displayed when Shift is held for an extended period of time after pressing space. If the combination is done fast enough, it'll just trigger the first menu option which is to toggle ascii_mode, as if Shift+space was a dedicated shortcut for that.

Another issue is about the display of current ascii_mode status. Users have said that it needs improvement. I might try displaying the current status when Shift is long pressed, or even display the options menu before they press space. This gives user a chance to review current status before making any change.

dupontjoy commented 6 years ago

旧版主程序还会更新不, 9.30有两年多了 之前测试基于google的新输入法不好用

lotem commented 6 years ago

@dupontjoy 此帖只討論輸入法的配置 不討論具體的發行版本

LEOYoon-Tsaw commented 6 years ago

Sounds great, the only thing I can think of is to make sure that this short cut is customizable ;)

Arthur-liuliwei commented 5 years ago

请问如何在按shift之后,输入默认输入半角的英文呢,真是太不方便了