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

app_options 的 vim_mode 选项对 com.sublimetext.4 是否有效? #1000

Closed
jiapeng123456 opened this issue Nov 28, 2024 · 2 comments
Closed

Comments

@jiapeng123456
Copy link

自己测试了一下app_options 的 vim_mode的功能。
经过测试 app_options 的 vim_mode 对 iterm2 是有效的,但对 com.sublimetext.4 感觉是无效的。
请问一下,是没有对 com.sublimetext.4 做兼容,还是我个人设置的问题?
環境

  • 系統版本: (macOS 14.7)
  • 鼠鬚管版本: (0.16.0)

下面是我的配置:

patch:
  app_options:
    com.google.Chrome:
      ascii_mode: true
    com.microsoft.VSCode:
      ascii_mode: true
    com.apple.dt.Xcode:
      ascii_mode: true
    org.yuanli.utools:
      ascii_mode: true
    com.apple.Terminal:
      ascii_mode: true
    com.googlecode.iterm2:
      ascii_mode: true  # 初始爲西文模式
      no_inline: true   # 不使用行內編輯
      vim_mode: true    # 退出VIM插入模式自動切換輸入法狀態
    com.apple.finder:
      ascii_mode: true
    com.sublimetext.4:
      ascii_mode: true  # 初始爲西文模式
      no_inline: true   # 不使用行內編輯
      vim_mode: true    # 退出VIM插入模式自動切換輸入法狀態
    com.sublimetext.3:
      ascii_mode: true  # 初始爲西文模式
      no_inline: true   # 不使用行內編輯
      vim_mode: true    # 退出VIM插入模式自動切換輸入法狀態
    com.apple.calculator:
      ascii_mode: true
    com.apple.launchpad.launcher:
      ascii_mode: true
    com.apple.systempreferences:
      ascii_mode: true
    com.apple.ActivityMonitor:
      ascii_mode: true
    com.apple.keychainaccess:
      ascii_mode: true
    com.apple.Spotlight:
      ascii_mode: true
    com.jetbrains.intellij:
      ascii_mode: true  # 初始爲西文模式
      no_inline: true   # 不使用行內編輯
      vim_mode: true    # 退出VIM插入模式自動切換輸入法狀態

@ksqsf
Copy link
Member

ksqsf commented Nov 28, 2024

vim_mode 是否有效取决于这个程序本身会不会把 esc 等键发送给输入法。如果 sublime 提前截获了这个键,那么 vim_mode 就无法生效。

@jiapeng123456
Copy link
Author

明白了,谢谢了

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

2 participants