GithubHelp home page GithubHelp logo

Comments (3)

suliveevil avatar suliveevil commented on August 15, 2024

我的做法是获取光标之前的两个单词,判断光标之前有几个空格,如果两个单词都是英文,且有两个空格,才切换为英文模式。

无奈 macOS 太封闭了,只能用模拟Option+左箭头快捷键的方式先选中两个单词并复制,再正则匹配,效率太低了。所以虽然实现了智能切换输入法,但还是放弃了。

from pyim.

tumashu avatar tumashu commented on August 15, 2024

中英文切换的模式是可以自定义的,你可以研究研究 pyim-probe:

https://github.com/tumashu/pyim/blob/master/pyim-probe.el

from pyim.

suliveevil avatar suliveevil commented on August 15, 2024

感谢感谢,我去看看。

from pyim.

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.