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

中英文切换能不能使用组合键? #113

Closed
gatspy opened this issue Jul 29, 2016 · 17 comments
Closed

中英文切换能不能使用组合键? #113

gatspy opened this issue Jul 29, 2016 · 17 comments
Assignees

Comments

@gatspy
Copy link

gatspy commented Jul 29, 2016

现在用shift切换中英文,但是shift键使用频率太高了啊,特别是在终端下面以及vim里面。现在都是切换系统英文输入和squirrel,感觉这样切换特别麻烦。想输入中文的时候切输入的是字母,想输入英文的时候输入的却是汉字.最好就是能在squirrel中可以设置组合键来实现中英文切换,ctrl+space cmd+space等等
求解决之道。

@lotem
Copy link
Member

lotem commented Jul 30, 2016

@gatspy
Copy link
Author

gatspy commented Jul 30, 2016

谢谢了。虽然这个组合键有点难按,还是比单shift强多了。适合CAPS改为Ctrl。
这个key_binder可以在custom中patch吗

@lotem
Copy link
Member

lotem commented Jul 31, 2016

可以自定義。

@gatspy
Copy link
Author

gatspy commented Aug 1, 2016

@lotem 谢谢拉啊。可以关闭了,现在我已经使用的太爽了。

@lotem lotem closed this as completed Aug 2, 2016
@jtr109
Copy link

jtr109 commented Jun 21, 2017

@lotem 你好, 链接已经失效了, 这个文件夹好像已经不存在了. 能烦请你再发个链接吗? 或者 gist 也行. 我希望把中英文切换改成 shift+space. 非常感谢!

@tshu-w
Copy link

tshu-w commented Jun 21, 2017

@jtr109 参照下面在 default.custom.yaml 中加入设置

patch:
  key_binder/bindings:
    # hotkey switch
    - { when: always, accept: Shift+space, toggle: ascii_mode }
    # - { when: always, accept: Control+Shift+1, select: .next }
    # - { 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+exclam, select: .next }
    # - { when: always, accept: Control+Shift+at, toggle: ascii_mode }
    # - { when: always, accept: Control+Shift+numbersign, toggle: full_shape }
    # - { when: always, accept: Control+Shift+dollar, toggle: simplification }
    # - { when: always, accept: Control+Shift+percent, toggle: extended_charset }
    # - { when: always, accept: Shift+space, toggle: full_shape }
    # - { when: always, accept: Control+period, toggle: ascii_punct }

@jtr109
Copy link

jtr109 commented Jun 21, 2017

@Voleking 感谢你的回复, 不过我尝试这样操作好像没有达到预期的效果.

我发现在添加了这个配置以后, 如果已经切换到中文, 可以通过 Shift+space 切换成英文, 不过如果在英文环境下, 无法切换成中文.

这是我的配置. 另外, 在ascii_composer/switch_key 下也尝试过加入 Shift+space 好像也没有效果.

@tshu-w
Copy link

tshu-w commented Jun 21, 2017

@jtr109 我试了下,很是奇怪,Control+Shift+space 正常,Shift+space 就会出现你那样的问题,你试下换成其他快捷键试试?

@jtr109
Copy link

jtr109 commented Jun 21, 2017

@Voleking 谢谢, 会不会是和全半角切换冲突导致的?
我刚刚尝试了一下, 目前用 Alt+space 代替了, 不过在 iterm 下不知道为何不能使用 Alt+space 切换. 不过从键位上来说, Shift+space 可能对我来说更加理想.
我晚点再尝试一下, 非常感谢!

@lotem
Copy link
Member

lotem commented Jun 21, 2017

我來認領 Shift+space 的問題

@lotem lotem self-assigned this Jun 21, 2017
@lotem lotem reopened this Jun 21, 2017
@jtr109
Copy link

jtr109 commented Jun 21, 2017

谢谢, 期待您的消息! @lotem

@tshu-w
Copy link

tshu-w commented Jun 22, 2017

对,在 iTerm2 和 Terminal 下不能用组合按键切换

@xuhdev
Copy link

xuhdev commented Sep 27, 2017

我在fcitx下也有同樣的問題 “shift+space”

@lotem
Copy link
Member

lotem commented Sep 28, 2017

似乎把這件事遺忘了

@magic0524
Copy link

其实还有个小问题,能否把inline_ascii模式和ascii_mode这两个区分开呢?现在全都绑在shift上比较难受,用vim的时候shift很容易误触切换到中文,但是平常用的是时候inline_ascii又十分方便

@gpull
Copy link

gpull commented May 11, 2018

在Sublime Text 3中,如果配置了Shift_L: inline_ascii,输入Shift+Tab组合键时,输入Tab的同时也切换中英文,这是目前最烦恼的问题

@lotem
Copy link
Member

lotem commented May 12, 2018

Fixed via http://github.com/rime/librime/commit/707738900168336a75219ae5fc69fa08cc71a4b8

@lotem lotem closed this as completed May 12, 2018
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

7 participants