Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

IMSwitch in Math Block

cailuruscailurus317 downloads

Automatically switch input method in math block

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

This Obsidian plugin automatically switches input methods when writing mathematical formulas to improve writing efficiency. When the cursor enters a math formula area (between $ symbols), it automatically switches to English input; when the cursor leaves the formula area, it switches back to the previous input method.

demo_gif

Features

  • Automatic detection of math formula areas (between $ symbols)
  • Automatically switches to English input when entering formula areas
  • Automatically returns to the previous input method when leaving formula areas
  • Customizable input method switching commands

Installation

  1. Open Obsidian Settings
  2. Go to "Third-party plugins" and disable "Safe mode"
  3. Click "Browse" and search for "Auto Switch Input"
  4. Click Install
  5. Enable the plugin

Configuration

The plugin provides three configurable commands:

  1. English input method
    • Default value: com.apple.keylayout.ABC
  2. Previous input method (usually an IME for non English writer, like CJK)
    • Default value: com.tencent.inputmethod.wetype.pinyin
  3. Path to the IME switch command:
    • Default value: /opt/homebrew/bin/macism

You can modify these commands in the plugin settings according to your system and input method preferences.

System Requirements

  • macOS: Requires macism to be installed
  • Other systems: Requires appropriate command-line tools for switching input methods

Important Notes

  1. Default configuration is for macOS
  2. For other operating systems, modify the commands in settings accordingly
  3. Ensure input method switching tools are properly installed and configured

Troubleshooting

Q: Why isn't the plugin switching input methods correctly?
A: Please ensure:

  1. macism other input method switching tool is properly installed
  2. Correct commands are configured in plugin settings
  3. The command-line tool works properly in terminal

Q: How to know the IME name? A:

  1. Install macism first
  2. Use macism in any terminal app

Contributing

Issues and Pull Requests are welcome to help improve this plugin.

License

MIT License

77%
HealthGood
ReviewSatisfactory
About
Switch input methods when the cursor enters or leaves inline math delimited by $: force English input inside formulas and restore the previous IME on exit. Detect math areas automatically and let you customize the IME switch commands (works with macism on macOS or any CLI IME switcher).
MathAutomationIntegrations
Details
Current version
1.0.6
Last updated
Last year
Created
Last year
Updates
6 releases
Downloads
317
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
cailuruscailurus
xxm.plus
GitHubcailurus
  1. Community
  2. Plugins
  3. Math
  4. IMSwitch in Math Block

Related plugins

BRAT

Easily install a beta version of a plugin for testing.

Readwise Official

Sync highlights from Readwise to your vault.

Todoist Sync

Materialize Todoist tasks within your notes.

Shell commands

Define system commands that you want to execute via command palette, hotkeys, URI links or automated events. E.g. open external applications or perform automated file modifications.

Google Calendar

Interact with your Google Calendar.

Initiative Tracker

TTRPG initiative tracker.

Actions URI

Add additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.