Skip to content

vim: Mapped JJ causes the input method to receive J #30393

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

Open
d1y opened this issue May 9, 2025 · 1 comment
Open

vim: Mapped JJ causes the input method to receive J #30393

d1y opened this issue May 9, 2025 · 1 comment
Labels
internationalization Feedback for human language support, translations, etc keybinds Keyboard shortcuts, mapping, binding, keymaps, etc vim

Comments

@d1y
Copy link
Contributor

d1y commented May 9, 2025

Summary

I have enabled vim_made and mapped jj

{
    "context": "Editor && vim_mode == insert",
    "bindings": {
      "j j": "vim::NormalBefore"
    }
}

But when I entered j in the input method(sogou pinyin)
I found that it seemed to be blocked and could not be passed into the input method, video:

Screen.Recording.2025-05-09.at.23.02.43.mov

Has anything been messed up? Is it possible that CJK's input method has this issue? /cc @ConradIrwin
Perhaps it was my mistake that caused it? I don't know

Zed Version and System Specs

Zed: v0.185.13 (Zed)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: aarch64

@notpeter notpeter added vim internationalization Feedback for human language support, translations, etc keybinds Keyboard shortcuts, mapping, binding, keymaps, etc labels May 9, 2025
@ConradIrwin
Copy link
Member

In theory we are supposed to only handle keystrokes when the IME is active. Is it possible that the IME in this case does not show any pending input? If so, we would not send it the j characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internationalization Feedback for human language support, translations, etc keybinds Keyboard shortcuts, mapping, binding, keymaps, etc vim
Projects
None yet
Development

No branches or pull requests

3 participants