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

feat: compatible with chinese like input method #874

Merged
merged 4 commits into from
Nov 6, 2021

Conversation

SolaWing
Copy link
Contributor

@SolaWing SolaWing commented Oct 31, 2021

this PR fixes following issues when I use vim with input method:

  1. use -, =, arrow key to select candidate. which shouldn't be
    handle by vim
  2. use left, right to move in marked text by word. which shouldn't
    be handle by vim directly
  3. pre-rendering marked text directly into UGrid cells, bypass vim
    key mapping system, only the finall insertText be inserted into vim.
    so vim map like jk to esc won't affect input method.
    and when input i in normal mode with input method, I can press
    to confirm it and only i will send to vim.

this PR should fixes #473 #592 #582 and may fixes #766 #771 #858

test against docs/notes-on-cocoa-text-input.md

this commit fixes following issues:

1. use `-`, `=`, `arrow key` to select candidate. which shouldn't be
   handle by vim
2. use `left`, `right` to move in marked text by word. which shouldn't
   be handle by vim directly
3. though inserting marked text directly into UGrid cells, bypass vim
   key mapping system, only the finall insertText be inserted into vim.
   so vim map like jk to esc won't affect input method.
   and when input i in normal mode when input method, I can press <CR>
   to confirm it and only i will send to vim.

 this is also the behaviour of mac terminal.
@qvacua
Copy link
Owner

qvacua commented Nov 6, 2021

Thanks! Since I don't know how to use Chinese input, if Korean input still works, I'll merge it. 😄

@qvacua qvacua merged commit 0065e0d into qvacua:develop Nov 6, 2021
@SolaWing SolaWing deleted the pr/preeditIME branch November 6, 2021 13:13
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

Successfully merging this pull request may close these issues.

Wrong position of input method Updating during composition events(Chinese, Japanese, etc. IME)
2 participants