You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}" }
3 commit comments
1yx commentedon Mar 13, 2020
Good Job! 我刚好试图在 rime 上找一种方案实现中英混排时加空格,正如 https://github.com/vinta/pangu.js 所做的。
{ when: composing, accept: Return, send_sequence: " {Escape} " }
似乎这样的配置就可以实现。
david50407 commentedon May 18, 2020
有計劃什麼時候會 release 這個 feature 嗎?
lotem commentedon May 19, 2020
還沒有。不過最近 https://github.com/BYVoid/OpenCC 又開始更新了,且發佈了API的變更。librime 也不得不準備跟進。