V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nthin0
V2EX  ›  macOS

请教鼠须管如何实现切换中英文时已经输入的文字自动上屏

  •  1
     
  •   nthin0 · 2021-02-26 16:44:55 +08:00 · 1044 次点击
    这是一个创建于 1147 天前的主题,其中的信息可能已经有所发展或是发生改变。

    目前是通过 karabiner 把单击右 shift 映射成 shift+control+0, 鼠须管配置文件如下:

    ascii_composer:
        good_old_caps_lock: true
        switch_key:
          Shift_L: noop
          Shift_R: noop
          Control_L: noop
          Control_R: noop
          Caps_Lock: noop
          Eisu_toggle: clear
    key_binder/bindings:
        - { when: always, accept: Control+Shift+0, toggle: ascii_mode }
    

    可以单击右 shift 切换中英文,但是切换的时候已经输入的文字不能自动上屏

    请教下各位应该怎样修改配置,谢谢🙏🏻

    2 条回复    2021-02-26 17:07:24 +08:00
    Kimyx
        1
    Kimyx  
       2021-02-26 16:51:42 +08:00
    # commit_text 已输入的候选文字上屏并切换至西文输入模式
    # commit_code 已输入的编码字符上屏并切换至西文输入模式

    Shift_L: commit_code
    Shift_R: commit_code
    nthin0
        2
    nthin0  
    OP
       2021-02-26 17:07:24 +08:00
    @Kimyx 大佬,用组合键切换输入法的时候呢,试了下 - { when: always, accept: Control+Shift+0, toggle: commit_code }没作用。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3955 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:12 · PVG 12:12 · LAX 21:12 · JFK 00:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.