Skip to content

在启动web server之前初始化输入法偏好preferences

Compare
Choose a tag to compare
@dongyuwei dongyuwei released this 16 Sep 14:46
· 91 commits to master since this release

可以通过命令行 defaults 命令来修改输入法配置。

  • 显示输入法所有默认配置项:
defaults read github.dongyuwei.inputmethod.hallelujahInputMethod

输出如下:

{
    commitWordWithSpace = 1;
    showTranslation = 1;
}
  • 配置输入时不显示翻译窗口(1显示,0不显示):
defaults write github.dongyuwei.inputmethod.hallelujahInputMethod showTranslation 0
  • 配置提交候选词时不自动附加空格(1加空格,0不加空格):
defaults write github.dongyuwei.inputmethod.hallelujahInputMethod commitWordWithSpace 0