Switch your input method from terminal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
im-select-mac update im-select May 29, 2018
im-select-win add im-select-win project May 29, 2018
.gitignore update .gitignore May 29, 2018
LICENSE Initial commit May 29, 2018
README.md update readme for windows May 29, 2018
install_mac.sh add install_mac.sh May 29, 2018

README.md

im-select

Switch your input method from terminal. This project is a basic support for VSCodeVim. It provides the command line program for VSCodeVim's autoSwitchIM function

Installation

macOS

Run following command in your terminal:

curl -Ls https://raw.githubusercontent.com/daipeihust/im-select/master/install_mac.sh | sh

The im-select program will be downloaded to your /usr/local/bin/ path.

windows

Download the im-select.exe, and move it to the proper path.(If you need the 64 bit version, you can download this one.)

linux

Coming soon

Usage

macOS

If your PATH contains /usr/local/bin, you can just use im-select instead of /usr/local/bin/im-select

To get current input method key

/usr/local/bin/im-select

To switch current input method

/usr/local/bin/im-select imkey

For example /usr/local/bin/im-select com.apple.keylayout.US

windows

The im-select.exe is command line program, but it can't work in cmd or powershell. It's microsoft's fault, the keyboard API doesn't support in cmd and powershell. I recommend you babun, an open source windows shell.

To get current keyboard locale

/path/to/im-select.exe

To switch current keyboard locale

/path/to/im-select.exe locale

Note: The path in windows is like: C:\Users\path\to\file