Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the snippets will be triggered under Chinese input mode #26

Closed
swithun-liu opened this issue Jul 21, 2020 · 9 comments
Closed

the snippets will be triggered under Chinese input mode #26

swithun-liu opened this issue Jul 21, 2020 · 9 comments

Comments

@swithun-liu
Copy link

image

This kind of problem never happened before.

@swithun-liu
Copy link
Author

my operating system is win10

@draivin
Copy link
Owner

draivin commented Jul 22, 2020

What do you mean by the snippets are triggered? What is the expected behavior here? And what did actually happen?

@swithun-liu
Copy link
Author

test2

when I type in English mode, the kuang will be triggered to become testForthisproblem

but when I type in Chinese mode, I want to print 方框 which means box in English,
for this, I have to type fangkuang, but the kuang will be triggered,

In my impression, this situation has never happened before

@draivin
Copy link
Owner

draivin commented Jul 23, 2020

I changed the way we handle automatic snippet expansions, as it is now, I'd have to look for a way to detect if you are using the chinese input mode, and if so ignore the auto completions. Do you know of such a library? I honestly have no idea where to start looking. How can I trigger the chinese input mode myself?

@swithun-liu
Copy link
Author

I really wanna help, but I have no idea at all.😅

@draivin
Copy link
Owner

draivin commented Jul 23, 2020

Is the chinese input an external program or is it native to your OS?

@swithun-liu
Copy link
Author

It comes with Win10.

@ytskuh
Copy link

ytskuh commented Dec 1, 2021

I know what the issue @lancerXXXX is facing. He is using the Microsoft IME which will turn your typed english characters into Chinese, but those English words will appear in the vscode typing area first so it will be detected by hypersnips. I think that is issue is hard to fix because it is just how the IME works. Maybe you can detect the state of input method but... hard to say if it's a good idea.

@draivin
Copy link
Owner

draivin commented Dec 2, 2021

Thanks for the feedback @sffred, I guess this is out of scope for this extension then, if anyone is facing this issue I'd suggest to change the snippet activation to Chinese characters, or otherwise to avoid using English word activations that would conflict with the IME keyboard.

@draivin draivin closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants