Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
使用 Control 鍵切換中西文,上屏已輸入的編碼;令 Caps Lock 改變字母的大小寫
# 中西文切換鍵的默認設置寫在 default.yaml 裏面
# 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵
#
# 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R
# Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用
#
# 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。
# 可選的臨時切換策略有三:
# inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文
# commit_text 已輸入的候選文字上屏並切換至西文輸入模式
# commit_code 已輸入的編碼字符上屏並切換至西文輸入模式
# 設爲 noop,屏蔽該切換鍵
#
# 如果要把 Caps Lock 設爲只改變字母的大小寫而不做中西文切換,可將 Caps_Lock 對應的切換方式設爲 noop
# 如果要以 Caps Lock 切換到西文模式,默認輸出小寫字母,請置 ascii_composer/good_old_caps_lock: false
# 如果要以 Caps Lock 切換到西文模式,默認輸出大寫字母,請使用以下設置:
patch:
ascii_composer/good_old_caps_lock: true
ascii_composer/switch_key:
Caps_Lock: commit_code
Shift_L: noop
Shift_R: noop
Control_L: commit_code
Control_R: commit_code
@grants

This comment has been minimized.

Copy link

commented Apr 11, 2013

Nice. I love rimeime.

@googolmo

This comment has been minimized.

Copy link

commented Jun 3, 2013

how can i use group key???

@Artoria-0x04

This comment has been minimized.

Copy link

commented Jul 5, 2013

能不能使用组合键啊,shift或者ctrl在很多程序中都是控制键,误触很麻烦,直接替换系统的ctrl+space其实挺不错的。

@fundon

This comment has been minimized.

Copy link

commented Nov 22, 2013

Cool!

@ahuigo

This comment has been minimized.

Copy link

commented Jun 8, 2014

感谢!我现在在看文档,有一些困惑, default.custom.yaml 用于全局设定,但是这个全局设定中写style/font_point 是不会生效的, style 相关的设定需要写到squirrel.custom.yaml中才行。 我觉得应该让default.custom.yaml 支持 style才对啊

@sdslnmd

This comment has been minimized.

Copy link

commented May 21, 2015

想设置在vim 里 按esc 切换到英文输入法可以吗?

@pengpengxp

This comment has been minimized.

Copy link

commented May 22, 2015

我也想在Vim或者Emacs中设置成Esc进入英文输入法。不知道怎么实现

@yazengo

This comment has been minimized.

Copy link

commented Mar 18, 2016

照猫画虎试了一下vim里面使用esc切换到英文
"key_binder/bindings":
- {accept: Escape, toggle: ascii_mode, when: always}
中文状态按两次 Esc,感觉比再找 Shift 快一点,试用一段时间看看

@suxiaoyv

This comment has been minimized.

Copy link

commented Apr 22, 2016

cmd + space 切换中英文怎么样。。。设置不成啊。。。好费力。。。

@gatspy

This comment has been minimized.

Copy link

commented Apr 25, 2016

切换中英文能使用组合键吗?现在经常按shfit输入大小写字母,一会就切换到中文,一会就切换到英文,烦人。

@evindu

This comment has been minimized.

Copy link

commented May 9, 2016

patch:
ascii_composer/good_old_caps_lock: false
ascii_composer/switch_key:
Caps_Lock: commit_code
Shift_L: noop
Shift_R: noop
Control_L: commit_code
Control_R: commit_code

这样设置重新部署后 按Caps_lock 仍然是切换到大写英文

@xaya1001

This comment has been minimized.

Copy link

commented Oct 28, 2016

  ascii_composer:
    good_old_caps_lock: false
    switch_key:
      Caps_Lock: commit_code
      Control_L: noop
      Control_R: noop
      Shift_L: noop
      Shift_R: noop

若能够像系统自带拼音输入法那样,短按caps切换中英文,灯都不亮,长按caps切换大小写就好了

若有人设置不成功,请检查一下缩进是否正确

@StoneAmber

This comment has been minimized.

Copy link

commented Mar 19, 2017

@lotem
下面是ibus-rime的default.yaml片段

ascii_composer:
  good_old_caps_lock: true
  switch_key:
    Shift_L: inline_ascii
    Shift_R: commit_text
    Control_L: noop
    Control_R: noop
    Caps_Lock: clear
    Eisu_toggle: clear

佛振,请问clear设置是什么作用?

@kevinfujiang

This comment has been minimized.

Copy link

commented Mar 22, 2017

短按caps lock切换中英文,怎么实现?
想保持之前的使用习惯

@gatspy

This comment has been minimized.

Copy link

commented May 6, 2017

我设置了中英文切换
- {accept: "Control+Shift+space", toggle: ascii_mode, when: always}
- {accept: "Alt+space", toggle: ascii_mode, when: always}
alt+space 在iterm2中切换的时候会打个空格
ctrl+shift+space 在iterm2中没效果
求指导

@seudut

This comment has been minimized.

Copy link

commented May 8, 2017

@gatspy, 我也碰到类似的,rime/home#152, ctrl+shift+space 和 ctrl+shift+2 一样的

@deepkolos

This comment has been minimized.

Copy link

commented Jul 19, 2017

commit_text, 按下的时候把输入对应的字上屏 , commit_code 按下的时候把输入的字上屏
clear是不上屏

ascii_composer/switch_key:
    Shift_L: commit_text
    Shift_R: commit_text
    Control_L: commit_code
    Control_R: commit_code

但是commit_text,commit_code都会切换到英

@EonYang

This comment has been minimized.

Copy link

commented Apr 18, 2018

请问未来可以做到shift和ctrl区分左右么?很期待这个feature,可以多出来好几个键。

@liuzou1991

This comment has been minimized.

Copy link

commented Apr 21, 2018

请问如果我想要在中文模式下,直接按分号进入临时英文,能办到吗?(很多五笔输入法都是用分号进入临时英文模式的,比如小小、极点)

@malabali123

This comment has been minimized.

Copy link

commented Dec 12, 2018

用注音輸入法的話,
個人覺得把default.yaml改成以下這樣最直覺,
以caps切換中英,要打大寫只要按著shift即可:

ascii_composer:
  good_old_caps_lock: false
  switch_key:
    Shift_L: noop
    Shift_R: commit_text
    Control_L: noop
    Control_R: noop
    Caps_Lock: clear
    Eisu_toggle: clear
@ahuigo

This comment has been minimized.

Copy link

commented Mar 2, 2019

patch:
  schema_list:
    - schema: wubi86
    - schema: pinyin_simp
  ascii_composer/good_old_caps_lock: false
  ascii_composer/switch_key:
    Caps_Lock: commit_code
    Enter: commit_text
    Shift_R: noop
  key_binder/bindings:
    - { accept: "Shift+space", toggle: half_shape, when: always} 

有没有办法在系统切换到Rime 输入法后,默认将CAPS_LOCK初始化为小写状态?

@xiang578

This comment has been minimized.

Copy link

commented Jun 4, 2019

冒昧问一下,目前能做到区分左右 shift 了吗?我看搜狗输入法有这个功能

@wastee

This comment has been minimized.

Copy link

commented Jun 15, 2019

冒昧问一下,目前能做到区分左右 shift 了吗?我看搜狗输入法有这个功能

有Shift_L和Shift_R

@xiang578

This comment has been minimized.

Copy link

commented Jun 15, 2019

冒昧问一下,目前能做到区分左右 shift 了吗?我看搜狗输入法有这个功能

有Shift_L和Shift_R

我在mac上尝试,貌似无法区分出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.