yuanotes / obsidian-vim-im-switch-plugin

MIT License
63 stars 12 forks source link

rewrite the switch method #9

Open bxb100 opened 2 years ago

bxb100 commented 2 years ago

When I saw the vscode vim switch IM logic, it seemed a much better way, I drew a simple graph to interpret the logic.

VIM switch Input Method

Rewrite the code by me, it's ok to open a PR?

liang-0131 commented 2 years ago

能发我用用不

bxb100 commented 2 years ago

能发我用用不

Hi, there're three files, main.js, manifest.json, style.css. You can put them under the .obsidian/plugins/ANY_NAME_YOU_LIKE.

https://gist.github.com/bxb100/313056928039a87e862cd6e541f4b260

Recently I changed writing essay on Logseq, so the script doesn't maintain anymore, sorry :)

yuanotes commented 2 years ago

When I saw the vscode vim switch IM logic, it seemed a much better way, I drew a simple graph to interpret the logic.

VIM switch Input Method

Rewrite the code by me, it's ok to open a PR?

抱歉回复较晚,我已经更新了CM6的支持。如果可以的话,麻烦重新提一下PR,十分感谢。

bxb100 commented 2 years ago

最近不用这个笔记了,而且代码 bug 过多,就不重开pr了。 你可以参考一下思路,feel free to use code