GithubHelp home page GithubHelp logo

Comments (9)

swithun-liu avatar swithun-liu commented on September 2, 2024

my operating system is win10

from hsnips.

draivin avatar draivin commented on September 2, 2024

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

from hsnips.

swithun-liu avatar swithun-liu commented on September 2, 2024

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

from hsnips.

draivin avatar draivin commented on September 2, 2024

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?

from hsnips.

swithun-liu avatar swithun-liu commented on September 2, 2024

I really wanna help, but I have no idea at all.πŸ˜…

from hsnips.

draivin avatar draivin commented on September 2, 2024

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

from hsnips.

swithun-liu avatar swithun-liu commented on September 2, 2024

It comes with Win10.

from hsnips.

ytskuh avatar ytskuh commented on September 2, 2024

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.

from hsnips.

draivin avatar draivin commented on September 2, 2024

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.

from hsnips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.