3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OSXのIME情報をコマンドラインから取得する

Posted at
/usr/libexec/PlistBuddy -c "Print AppleSelectedInputSources:0:'Input Mode'" ~/Library/Preferences/com.apple.HIToolbox.plist

/usr/libexec/PlistBuddyはplistファイルを操作する標準ツール。
~/Library/Preferences/com.apple.HIToolbox.plistにIME(入力ソース)の情報が入ってる。
AppleSelectedInputSources:0:'Input Mode'"obj["AppleSelectedInputSources"][0]["Input Mode"]の意味。

vimのステータスラインにIME情報載せようかと思って調べたけど結局使わなかったので投稿しとく。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?