Skip to content

qazxcdswe123/vim-im-select-obsidian

 
 

Repository files navigation

Obsidian Vim IM Select Plugin

Chinese ver. 中文版本

This plugin is used to automatically switch the current input method of the system when vim key binding is used in Obsidian, to prevent non-English input method from causing key binding failure in vim normal mode.

Install

First, need to turn on vim key binding in Obsidian.

In setting of Obsidian, turn off safe mode then install this plugin.

Alternatively, manually install: copy main.js and manifast.json to VAULT_ROOT/.obsidian/plugins/vim-im-select/.

Usage

After enabling this plugin, you can find a setting tab in Setting.

The setting options are devided into two parts, the first is for default platform, the second is for Windows platform.

If you use Obsidian under the Windows platform, the plug-in will use the second part of the settings, otherwise the first part of the settings.

The options are similar in different platform.

Option Defination
Default IM specify the input method used in normal mode
Obtaining Command Command to obtain current input method (must be excutable)
Switching Command Command to switch current input method (must be excutable, use {im} as placeholder of target input method)

Following is a example: example

After activating the plugin in the first time and finishing setting, you need to restart Obsidian.

If you want to know more:

Credit

About

Obsidian plugin: vim im select

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.7%
  • JavaScript 6.2%
  • Shell 1.1%