fcitx / fcitx5-unikey

34 stars 10 forks source link

Use surrounding text to detect context. #12

Closed wengxt closed 2 years ago

wengxt commented 2 years ago

For the issue described in #6.

When reset is called, the buffer is cleared. We should try to restore the key history from surrounding text. The same techniques is also used by fcitx5-chinese-addons's punctuation module.

wengxt commented 2 years ago

@Nekosha Please give it a try and let me know if there's any problem.

Nekosha commented 2 years ago

Seems to be working well. I've been using it for 2 weeks with no problems. Cheers!