GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vovkasm/input-source-switcher: Command line input source switcher for Mac.

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
formatters.cpp
formatters.cpp
 
 
formatters.h
formatters.h
 
 
input_source_controller.cpp
input_source_controller.cpp
 
 
input_source_controller.h
input_source_controller.h
 
 
issw_config.h.in
issw_config.h.in
 
 
main.cpp
main.cpp
 
 
test.c
test.c
 
 
utils.cpp
utils.cpp
 
 
utils.h
utils.h
 
 

Repository files navigation

Command line input source switcher for Mac.

About

This small utility for Apple OS X allows to easily switch input sources from a command line. It's main purpose is to be used as a service in vim-xkbswitch plugin.

Usage

issw [-h] [-l] [<input-source-id>]

-h - show help message
-l - list all selectable input sources
-V - print version number

If no arguments are specified, it prints the current input source.
If <input-source-id> is specified, it selects the specified input source.

How to build

git clone https://github.com/vovkasm/input-source-switcher.git
cd input-source-switcher
cmake -B build
cmake --build build
cmake --install build

How to develop with Xcode

cd input-source-switcher
mkdir xcode && cd xcode
cmake -G Xcode ..
open InputSourceSwitcher.xcodeproj

Caveats

There is an old bug in macOS related to handling input sources for CJK languages. If you're using the default APIs, when switching languages from the command line (i.e., without creating a GUI application), the switch won't work correctly for languages with composite input (like Japanese and Chinese). @laishulu has implemented a workaround for this issue in his implementation of a similar utility, available at https://github.com/laishulu/macism. If this issue affects you, it's worth checking out his project.

Author

Vladimir Timofeev

Licensing

This projected is licensed under the terms of the MIT license.

About

Command line input source switcher for Mac.

Resources

Readme
MIT license
Activity

Stars

148 stars

Watchers

5 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.