Vim Multibyte Char Search

by anselmwang
5
4
3
2
1
Score: 41/100

Description

The Vim Multibyte Char Search plugin enhances Obsidian's version control and file recovery features by displaying diffs for Sync, File Recovery, and Git versions of the active file. It provides a visual comparison of changes with support for markdown and plain text renderings, enabling users to review and restore previous file versions with ease. The plugin integrates with Obsidian Git for version history and includes a color-blind mode for better accessibility. Users can overwrite the current file with an earlier version and view the diffs in a side-by-side format for better clarity. It's a powerful tool for managing version history and ensuring that users can recover files and track changes effectively.

Reviews

No reviews yet.

Stats

14
stars
4,200
downloads
0
forks
1,570
days
1,528
days
1,528
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
6
total issues
3
open issues
3
closed issues
0
commits

Latest Version

4 years ago

Changelog

Previous versions miss the data so are not usable.

README file from

Github

This is an obsidian plugin. It supports search multibyte characters in VIM easily. VIM is best to operate under english input mode, to search for multibyte characters like Chinese, users have to switch back and forth between input modes.

To simplify the process, this plugin allows users to search multibyte character by the first characters of corresponding input method encoding of the multibyte characters.

For example, in the Chinese pinyin input method, the encoding of "用来" is "yong lai", we can search such chinese words by "yl".

Installation

The plugin requires VIM mode being turned on in Obsidian. Then you can install this plugin by searching "Vim Multibyte Char Search" in Obsidian "Community Plugin" tab.

Usage

  • Run "Search Multibytes" command.
  • If you want to search for "用来", type "yl" and press Enter.
  • Press n to trigger search

Advanced Usage

To achieve the best experience, we'd better install "obsidian-vimrc-support" plugin and add following lines to the .obsidian.vimrc.

unmap <Space>
exmap enrich_vim_search_pattern obcommand obsidian-vim-multibyte-char-search:enrich-current-vim-search-pattern
exmap search_multibytes obcommand obsidian-vim-multibyte-char-search:search-multibytes
nmap <Space>n :enrich_vim_search_pattern
nmap <Space>/ :search_multibytes

Then we can trigger "Search Multibytes" command by <Space>/.

Search single byte pattern first then switch to multibyte pattern

Another way to use the plugin is the search single byte pattern first and then switch to multibyte pattern. Such way may introduce some inconvenience. For example, if you want to search "吃了", the pattern is "cl" and will match with english word "class" first.

  • Type "/yl" or "?yl"
  • Press <space> n n
    • The first part of the key sequence is <space> n. According to our above configuration in .obsidian.vimrc , this key sequence will trigger command "Enrich Current VIM Search Pattern". The command retrieves current search pattern "yl", and tries to rewrite it according to all chinese phrases in current editor whose input method encoding starts from "yl". In this example, there are 2 chinese phrases "用来" and "原来", so the search pattern is rewritten to regular expression 用来|原来.
    • Then the second n again to search using the new regular expression.
  • Continue type "n" or "N" to jump to previous or next match, just as normal vim search.

.

Onboard new language

The search capability is based on dictionary. "用来" is mapped to "yl" because following lines in pinyin_search.dict.txt.

用 y
来 l

The dictionary support multiple encoding for same character. For example, following lines mean "给" can start with either "g" or "j". so "给予" will match search pattern "gy" or "jy".

给 gj
予 y

To onboard any new language, just create a pinying_search.dict.txt for your language and replace the current one.

Acknowledgement

The plugin is an Obsidian ported version of GitHub - ppwwyyxx/vim-PinyinSearch: help vim search Chinese by Pinyin. ppwwyyxx generously allows me to use the same algorithm.

I learn how to work with CodeMirror editor from esm7's great plugin esm7/obsidian-vimrc-support: A plugin for the Obsidian.md note-taking software.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Anki Integration
a year ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
AnySocket Sync
2 years ago by Andrei Vaduva
Securely Synchronize your Vault on a self-hosted server
Askify Sync
3 years ago by Kishlay Raj
Awesome Flashcard
4 years ago by AwesomeDog
Handy Anki integration for Obsidian.
Awesome Reader
3 years ago by AwesomeDog
Make Obsidian a proper Reader.
BetaX NAS Sync
a year ago by Skye
Obsidian NAS Sync
BookFusion
2 years ago by BookFusion
BookFusion Obsidian Plugin
BookXNote Sync
2 years ago by CodeListening
将bookxnote中的笔记同步到obsidian指定的文件夹中
Browser History
a year ago by noy4
Sync your browser history to notes.
Chatty
8 months ago by Sadnan Saquif
A simple plugin for Obsidian that allows you to listen to your notes using text-to-speech. Uses the browser's built-in speech synthesis capabilities and your default system voices.
Checkbox Sync
a year ago by Grol
Keep parent/child checkboxes in sync automatically within your Obsidian task lists.
Cicada Synchronizer
2 years ago by Adapole, Adapole, Mahyar Mirrashed
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Confluence Sync
2 years ago by Prateek Grover
Obsidian plugin for obsidian confluence sync
Cubox
a year ago by delphi-2015
Cubox Official Obsidian Plugin
Douban
4 years ago by Wanxp
an obsidian plugin that can pull data from douban to your markdown file
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
ExMemo Client
2 years ago by Yan.Xie
exmemo obsidian plugin
Feedly Annotations Sync
a year ago by Nick Felker
Download my Feedly annotations
Filename Heading Sync
5 years ago by dvcrn
Obisdian.md plugin to keep the filename and the first header of the file in sync
Git Changelog
a year ago by shumadrid
An Obsidian plugin that displays changelogs of the entire vault and individual files in the sidebar by utilizing Git commit history
Git File Explorer
2 years ago by Mateus Molina
GitHub Gitless Sync
a year ago by Silvano Cerza
Sync a GitHub repository with vaults on different platforms without requiring git installation
Github Issues
a year ago by LonoxX
An Obsidian plugin that integrates with GitHub to track issues and pull requests directly in your vault.
GitHub Sync
2 years ago by Kevin Chin
Sync Obsidian vault to personal GitHub
Glasp
a year ago by Glasp
Obsidian plugin to import highlights and notes from Glasp
Google Contacts
a year ago by aleksejs1
Obsidian plugin for sync Google Contacts with obsidian notes
Google Drive Sync
2 years ago by Richard Xiong
A plugin to make Obsidian work in Google Drive to enable access to iOS.
HackMD Sync
2 years ago by thor kampefner
obsidian extension to push and pull notes from hackmd conveniently
Hardcover
5 months ago by aliceinwaterdeep
InfoFlow
a year ago by RockieStar Inc.
Obsidian plugin for InfoFlow.app - This plugin integrates InfoFlow with Obsidian, allowing you to sync your saved articles, web pages, notes, and highlights directly into your Obsidian vault.
Instapaper
2 years ago by Instapaper
Official Instapaper plugin for Obsidian
Jira Issue Manager
a year ago by Alamion
Obisdian plugin to sync tasks between Obsidian and Jira
KOI Sync
a year ago by Luke Miller
KOReader Sync
4 years ago by Federico "Edo" Granata
Obsidian.md plugin to sync highlights/notes from koreader
Limitless Lifelogs
a year ago by Maclean Dunkin
Sync your Limitless AI lifelog entries directly into Obsidian markdown files.
LINE Notes Sync
a year ago by onikun94
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Markwhen File Sync
a year ago by rouvenjahnke
Synchronize properties from your Obsidian notes with a Markwhen timeline file.
Memos AI Sync
a year ago by leoleelxh
obsidian-memos-sync-plugin,将 Memos 内容同步到 Obsidian 的插件,提供无缝集成体验。
Memos Sync
2 years ago by RyoJerryYu
Syncing Memos to Obsidian daily note. Fully compatible with official Daily Notes plugin, Calendar plugin and Periodic Notes plugin.
Minote Sync
a year ago by Emac Shen
Minote Sync is a Obsidian plugin to sync Minote(小米笔记) into your Vault.
MrDoc
8 months ago by zmister
An Obsidian plugin for MrDoc that enables two-way synchronization between local Obsidian documents and MrDoc.一个 Obsidian 的 MrDoc 插件,用于 Obsidian 本地文档与 MrDoc 的双向同步
Note Sync
a year ago by ZigHolding
Notes Sync Share
3 years ago by Alt-er
Sync and share (publish) your notes in your own private service.
Nutstore Sync
7 months ago by nutstore-dev
Peerdraft
3 years ago by Peerdraft
Collaboration for Obsidian – Sync, Share, and Edit anywhere
Pinboard Sync
4 years ago by Mathew Spolin
Obsidian plugin to sync Pinboard.in links to Daily Notes
Publish and GitHub URL
5 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Rainbow-Colored Sidebar
a year ago by Kevin Woblick
Automatically color your sidebar like a rainbow. No configuration needed. 18 themes included.
Readavocado Sync
4 years ago by Cyrus Zhang
Readavocado obsidian plugin to sync your favorite highlights.
Readwise Mirror
5 years ago by jsonmartin
Remotely Save
5 years ago by fyears
Sync notes between local and cloud with smart conflict: S3 (Amazon S3/Cloudflare R2/Backblaze B2/...), Dropbox, webdav (NextCloud/InfiniCLOUD/Synology/...), OneDrive, Google Drive (GDrive), Box, pCloud, Yandex Disk, Koofr, Azure Blob Storage.
SamePage
4 years ago by SamePage
Settings profiles
2 years ago by 4Source
This is a plugin for Obsidian (https://obsidian.md). Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.
Share to NotionNext
3 years ago by EasyChris, jxpeng98
Share obsidian markdown file to any Notion database and generate notion share link 同步obsdian文件到任意Notion数据库。
Strava Sync
2 years ago by Howard Wilson
Sync Strava activities to your Obsidian vault
Sync Cnblog
2 years ago by zhanglei
同步文章到博客园
Sync config folder to common folder
2 years ago by codeonquer
Sync Graph Settings
4 years ago by Xallt
This is a plugin for syncing graph settings (Color Groups and Search Filters) to Local Graphs
Sync to Hugo
2 years ago by Cray Huang
Sync the selected notes from Obsidian to Hugo
Sync Vault CE
a year ago by Camus Qiu
Professional cloud sync & VFS for Obsidian. Features zero-space VFS, 4K streaming, MCP AI engine, and P2P collaboration. Supports Baidu/Aliyun/Quark/WebDAV/S3.
Sync-safe file names
8 months ago by j-maas
Ensure your Obsidian files can always be synced across all your devices.
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Taskbone
5 years ago by Dominik Schlund
Obsidian OCR plugin - extract text from images
Text to Speech
5 years ago by Johannes Theiner
Text to speech for Obsidian. Hear your notes.
TickTick
3 years ago by Viduy Cheung
TickTickSync
3 years ago by thesamim
Todoist Sync
6 years ago by jamiebrynes7
Materialize Todoist tasks in Obsidian notes
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
Vikunja Sync
2 years ago by Peter Heiss
Manage your tasks in vikunja.
Voicenotes Sync
2 years ago by Andrew Lombardi
Official Obsidian plugin that syncs your notes from VoiceNotes.com into your vault
Weread Plugin
4 years ago by hank zhao
Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
WikiDocs
2 years ago by pahkey
WuCai highlights Official
3 years ago by 希果壳五彩
WuCai highlights Official, for Sync highlights into your obsidian notes
Yandex Wiki Integration
a year ago by Pavel Sokolov