Is there any way to accept only one char? This issue is mainly targeted at East Asian users. #673
Unanswered
gaoqiangks
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Yeah I can detect if the next char is a hanzi/kanji and make the accept word keybind accept just the one character. Can you open a issue for this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For Chinese users,
accept_wordis far too broad in scope. This is because Chinese does not separate words with spaces—an English "word" is more akin to a single Chinese character (char). As a result,accept_wordfor Chinese users essentially equates to "accept input until the next punctuation mark".I wonder if there is any way to accept only a single char? Alternatively, is there any way to customize the behavior of
accept_word—for example, by defining a custom hook that, when detecting the current virtual text is Chinese, makesaccept_wordreturn just the next char instead of reading until the next space or punctuation mark?Beta Was this translation helpful? Give feedback.
All reactions