iTerm 中 vim_mode 无法响应 <C-c> 及 <C-[>
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 6.4k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
我发现在其它软件中设置 vim_mode: true 后除了 <ESC> 外, <C-c> 及 <C-[> 被按下时也可切换为英文模式, 但 iTerm.app 中只有 <ESC> 可响应。此外 Terminal 中 <ESC>, <C-c>, <C-[> 在按下时均无法切换为英文模式。目前怀疑这两个软件内部可能存在潜在的与 <C-c> <C-[> 等按键的快捷键冲突。
下面是我的 Squirrel 配置, 如前所述, 除了 iTerm 及 Terminal 外, 诸如 MacVim, VSCode, Obsidian 等软件中均可通过按下 <C-c> 及 <C-[> 来实现切换为英文模式
app_options:
com.microsoft.VSCode:
ascii_mode: true
vim_mode: true
org.vim.MacVim: # you should find
ascii_mode: true
# allowed switch to English input when <ESC> pressed, and don't need double press <ESC> in macvim anymore
vim_mode: true
#no_inline: false
com.apple.Terminal:
ascii_mode: true
vim_mode: true
#no_inline: false
com.googlecode.iterm2:
ascii_mode: true
vim_mode: true
md.obsidian:
vim_mode: true
ascii_mode: true
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported behavior using the provided app_options configuration in iTerm.app and Terminal, then compare it with MacVim, VSCode, and Obsidian. Trace how ESC, C-c, and C-[ are handled and identify whether terminal shortcuts prevent the mode switch; done means all three keys switch to English mode where the configuration enables vim_mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- desktop, internationalization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100