swim


Ⅰ. 插件描述

A command line tool to switch the current input method by identifier for macOS.

Ⅱ. 基本信息

创建日期:  2016-12-31
使用用户:  1
Github星:  31
插件作者:  Tomoya Kose

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mitsuse/swim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mitsuse/swim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mitsuse/swim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mitsuse/swim

Ⅳ. 文档说明

# Swim

License
Release

Switch the current input method by identifier.

Installation

Prebuilt binary is not provided. Please build from source:

git clone -b 0.4.0 https://github.com/mitsuse/swim.git && cd swim
swift build -c release
cp .build/release/swim ${YOUR_EXECUTABLE_PATH}

Usage

swim has two sub-commands: list and use.

list

This sub-command lists identifiers of available input sources on the standard output.
Identifiers are separated by new line.

For example, swim list presents the following output:

com.apple.keyboardlayout.ABC
com.apple.inputmethod.Kotoeri.Japanese

If --name option is enabled,
the command presents the name and the identifier of input sources
with format like name (identifier):

ABC (com.apple.keyboardlayout.ABC)
Hiragana (com.apple.inputmethod.Kotoeri.Japanese)

You can filter them to present the current input source with --current option.

use

This sub-comman switch to the input method specified with the given identifier.
For example, swim use com.apple.inputmethod.Kotoeri.Japanese switches the current input source to
Japanese.
If the given identifier is invalid or unavailable,
the command exits with unavailableSource (exit code: 65).

License

The content of this repository are licensed under the MIT License unless otherwise noted.
Please read LICENSE for the detail.

添加新评论