tonyfettes / coc-rime

Rime input method source for coc.nvim
https://www.npmjs.com/package/coc-rime
MIT License
30 stars 2 forks source link

:sparkles: Realize a true IME #13

Closed Freed-Wu closed 4 months ago

Freed-Wu commented 4 months ago

Realize a real IME.

screen-2024-06-24-21-34-21

register an autocmd to:

  1. capture input character
  2. pass it to librime
  3. get context
  4. destroy the previous window (if existed)
  5. draw new window

And an autocmd to

  1. trigger when exit insert mode
  2. destroy the previous window (if existed)

Refer:

Related:

tonyfettes commented 4 months ago

Nice work! Never though this is possible within coc.nvim.

By the way, do you mind if I transfer the project to you. I don't think I'm qualified to be a maintainer of the repository now, so I guess it might be better to move it under your name...

Freed-Wu commented 4 months ago

No serious. It depends on you :smile:

Freed-Wu commented 4 months ago

Not it works!

this is possible within coc.nvim

I list some limitaion in README. Some is unresolved due to coc.nvim.

transfer the project to you

Yes, github CI/CD needs NODE_AUTH_TOKEN to upload new version to npm. Else it will fail:

https://github.com/tonyfettes/coc-rime/actions/runs/9723174282/job/26837970342