Open rogual opened 9 years ago
It seems, to support IMEs:
<C-o>
should still go to Vim.handleEvent
tells us whether “the system consumed the event”, so maybe we can use this to decide what to send to Vim.i
, we won't know to start sending keys to Cocoa until the next redraw, by which time they may have pressed more keys. So, our options are:
Started branch https://github.com/rogual/neovim-dot-app/tree/ime to have a look at some of this stuff.
Hi. I'm trying to implement IME support for neovim-dot-app on my fork. (https://github.com/tsukimizake/neovim-dot-app) Basic Japanese input is already working, but there's one problem left. Marked text (text being passed to IME) should be shown inline, but I don't know how to implement it on neovim-dot-app.
For example, when I type 'こんにちわ', application should show it inline like this MacVim screenshot.
Although, my current implementation shows it like this. Even when whole 'こんにちわ' is typed, only half of the first character under cursor is seen. (Once I hit return key, 'こんにちわ' is inserted properly.)
Text to show is stored in mMarkedText variable and I want to show it inline. Maybe there should be some work on redraw.mm? I want to send a pull request when this bug is fixed. Is there some advice?
Thanks.
Originally requested in https://github.com/rogual/neovim-dot-app/issues/63.