Giter Site home page Giter Site logo

smartinputlinux's Introduction

使用前提

  • linux下使用ibus,安装了vim插件,需要配置下中文输入法的名称
  • vim插件配置自动切换输入法,ibus参考在setting.json输入
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "xkb:us::eng",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/ibus engine",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/ibus engine {im}"

效果展示

演示

vsc插件坑

  • 一定要注意用tsc命令重新编译下,F5有时不会重新编译

目前已经实现的功能

  • 识别到注释场景时,自动切换为中文输入法。
  • 识别到vim normal状态自动切换为英文输入法(自动配置vim插件的auto switch input method)
  • 识别到vim insert且当前位于注释行中时切换为中文
  • 当回到编辑器时切换为英文输入法
  • 离开编辑器时切换为中文输入法
  • 开头为中文切换为中文输入法

smartinputlinux's People

Contributors

rn-consider avatar

Watchers

 avatar

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.