update at 2025-11-04 19:58:03

This commit is contained in:
douboer
2025-11-04 19:58:03 +08:00
parent fe4daf0469
commit 931c99a4d8
7 changed files with 301 additions and 45 deletions

View File

@@ -1,6 +1,8 @@
# Changelog
All notable changes to the Obsidian Vim Input Method Switch Plugin will be documented in this file.
All notable changes to the Vim Input Method Switch Plugin will be documented in this file.
Includes update history for both Obsidian plugin and Vim plugin versions.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
@@ -9,6 +11,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
---
## [2.0.0] - 2025-11-04
### Added
#### Native Vim Plugin Support
- **New fcitx-osx.vim plugin**: Provides automatic input method switching for native Vim/NeoVim editors
- **Smart input method state memory**:
- Remembers input method (Chinese/English) when exiting Insert mode
- Automatically restores previous IM state when entering Insert mode again
- Completely seamless switching with no UI flicker
- **Using fcitx-remote -s command**:
- Precise switching by specifying input method ID
- Replaces old `-c`/`-o` toggle commands
- Supports custom English and Chinese IM IDs
- **Asynchronous execution optimization**:
- Uses Vim 8+ `job_start()` for async command execution
- Completely eliminates UI flicker and delay during IM switching
- Backward compatible with older Vim versions (using background process)
#### Enhanced Deploy Script
- **deploy.sh update**: One-click deployment for both Obsidian and Vim plugins
- Automatically creates `~/.vim/plugin/` directory
- Copies both plugins to their respective target locations
### Improved
#### Vim Plugin Performance Optimization
- Uses `fcitx-remote -n` to get current input method name
- Saves complete IM ID instead of simple toggle state
- Avoids unnecessary IM switches (skips when same IM)
- All output redirected to `/dev/null` for silent execution
### Fixed
- Fixed issue where `fcitx-remote -c` command doesn't work in Vim plugin
- Fixed title bar flashing "fcitx-remote" issue
- Fixed string comparison failure (`"2\n" == 2`) issue
### Documentation
- Updated README.md and README_en.md with Vim plugin installation instructions
- Updated all document titles from "Obsidian" to include both plugins
- Added Vim plugin configuration and debugging instructions
---
## [1.0.8] - 2025-01-04
This is a major update that introduces input method state memory and fixes several critical issues.