📟 Switch your input method through terminal.
Contribute to daipeihust/im-select development by creat......
im-select
Installation
macOS
Homebrew
Run following command in your terminal:
brew tap daipeihust/tap && brew install im-select
Then you can run following command to find your im-select
path:
which im-select
Normaly the result is /usr/local/bin/im-select
.
or/opt/homebrew/bin/im-select
Now, you can use im-select to print your current input method.
Use script
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.
M1 Mac support
Click here to download specific im-select program
windows
Manual download
Download the im-select.exe,
and move it to the proper path.
(If you need the 64 bit version,
you can download this one.)
Use Scoop package manager:
scoop bucket add im-select https://github.com/daipeihust/im-select scoop install im-select
linux
You don't have to install this for linux. linux have tools to switch input methods
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 git-bash.
Note: The git-bash is not required.
It's only used to get current input method key,
k which needed in VSCodeVim's configuration.
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
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
2022-02-11 jQuery如何进行二次查找
2022-02-11 如何查看一个网站有没有使用jQuery
2022-02-11 开发依赖 生产依赖 区别
2022-02-11 JavaScript 数组中的常用方法 数组方法
2022-02-11 ngrok 实现内网穿透
2022-02-11 symbol作为key时的获取与遍历
2022-02-11 如何创建两个相同的symbol