Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(key_binder): bind key to a key sequence
Closes #301 To bind a key to a key sequence, set 'send_sequence' attribute of a 'key_binder/bindings' entry. Special named keys should be around with "{" and "}". Notice that you have to add quotes when writing a filed with "{" or "}" in a yaml file. For example: key_binder: bindings: - { when: composing, accept: a, send_sequence: aa } - { when: composing, accept: Right, send_sequence: "{Right}{Right}" } - { when: composing, accept: Left, send_sequence: "aa{Left}{Left}" }
- Loading branch information
3b5dbf6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job! 我刚好试图在 rime 上找一种方案实现中英混排时加空格,正如 https://github.com/vinta/pangu.js 所做的。
{ when: composing, accept: Return, send_sequence: " {Escape} " }
似乎这样的配置就可以实现。
3b5dbf6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有計劃什麼時候會 release 這個 feature 嗎?
3b5dbf6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
還沒有。不過最近 https://github.com/BYVoid/OpenCC 又開始更新了,且發佈了API的變更。librime 也不得不準備跟進。