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

15
stars
4,278
downloads
0
forks
1,682
days
1,640
days
1,640
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.
Text to Speech
5 years ago by Johannes Theiner
Text to speech for Obsidian. Hear your notes.
KOReader Sync
5 years ago by Federico "Edo" Granata
Obsidian.md plugin to sync highlights/notes from koreader
Pinboard Sync
5 years ago by Mathew Spolin
Obsidian plugin to sync Pinboard.in links to Daily Notes
Weread Plugin
4 years ago by hank zhao
Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
Douban
4 years ago by Wanxp
an obsidian plugin that can pull data from douban to your markdown file
Readavocado Sync
4 years ago by Cyrus Zhang
Readavocado obsidian plugin to sync your favorite highlights.
Awesome Flashcard
4 years ago by AwesomeDog
Handy Anki integration for Obsidian.
SamePage
4 years ago by SamePage
Sync Graph Settings
4 years ago by Xallt
This is a plugin for syncing graph settings (Color Groups and Search Filters) to Local Graphs
Awesome Reader
4 years ago by AwesomeDog
Make Obsidian a proper Reader.
WuCai highlights Official
3 years ago by 希果壳五彩
WuCai highlights Official, for Sync highlights into your obsidian notes
Askify Sync
3 years ago by Kishlay Raj
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
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
TickTick
3 years ago by Viduy Cheung
Share to NotionNext
3 years ago by EasyChris, jxpeng98
Share obsidian markdown file to any Notion database and generate notion share link 同步obsdian文件到任意Notion数据库。
Notes Sync Share
3 years ago by Alt-er
Sync and share (publish) your notes in your own private service.
TickTickSync
3 years ago by thesamim
Bidirectional synchronization between Obsidian and TickTick. Mobile compatible.
Peerdraft
3 years ago by Peerdraft
Collaboration for Obsidian – Sync, Share, and Edit anywhere
Git File Explorer
3 years ago by Mateus Molina
Instapaper
3 years ago by Instapaper
Official Instapaper plugin for Obsidian
Settings profiles
3 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.
GitHub Sync
3 years ago by Kevin Chin
Sync Obsidian vault to personal GitHub
BookFusion
3 years ago by BookFusion
BookFusion Obsidian Plugin
Confluence Sync
3 years ago by Prateek Grover
Obsidian plugin for obsidian confluence sync
Cicada Synchronizer
3 years ago by Adapole, Adapole, Mahyar Mirrashed
Sync config folder to common folder
3 years ago by codeonquer
Voicenotes Sync
2 years ago by Andrew Lombardi
Official Obsidian plugin that syncs your notes from VoiceNotes.com into your vault
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.
Vikunja Sync
2 years ago by Peter Heiss
Manage your tasks in vikunja.
AnySocket Sync
2 years ago by Andrei Vaduva
Securely Synchronize your Vault on a self-hosted server
Git
6 years ago by Vinzent, (Denis Olehov)
Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md
Todoist Sync
6 years ago by jamiebrynes7
Materialize Todoist tasks in Obsidian notes
Filename Heading Sync
5 years ago by dvcrn
Obisdian.md plugin to keep the filename and the first header of the file in sync
Readwise Mirror
5 years ago by jsonmartin
Taskbone
5 years ago by Dominik Schlund
Obsidian OCR plugin - extract text from images
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.
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.
BookXNote Sync
2 years ago by CodeListening
将bookxnote中的笔记同步到obsidian指定的文件夹中
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.
Strava Sync
2 years ago by Howard Wilson
Sync Strava activities to your Obsidian vault
ExMemo Client
2 years ago by Yan.Xie
exmemo obsidian plugin
HackMD Sync
2 years ago by thor kampefner
obsidian extension to push and pull notes from hackmd conveniently
Google Drive Sync
2 years ago by Richard Xiong
A plugin to make Obsidian work in Google Drive to enable access to iOS.
Sync to Hugo
2 years ago by Cray Huang
Sync the selected notes from Obsidian to Hugo
Sync Cnblog
2 years ago by zhanglei
同步文章到博客园
WikiDocs
2 years ago by pahkey
BetaX NAS Sync
2 years ago by Skye
Obsidian NAS Sync
Feedly Annotations Sync
2 years ago by Nick Felker
Download my Feedly annotations
Glasp
2 years ago by Glasp
Obsidian plugin to import highlights and notes from Glasp
Minote Sync
2 years ago by Emac Shen
Minote Sync is a Obsidian plugin to sync Minote(小米笔记) into your Vault.
Checkbox Sync
2 years ago by Grol
Keep parent/child checkboxes in sync automatically within your Obsidian task lists.
VaultSync
2 years ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
KOI Sync
2 years ago by Luke Miller
Memos AI Sync
2 years ago by leoleelxh
obsidian-memos-sync-plugin,将 Memos 内容同步到 Obsidian 的插件,提供无缝集成体验。
Sync Vault CE
2 years 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.
InfoFlow
2 years 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.
LINE Notes Sync
2 years ago by onikun94
GitHub Gitless Sync
2 years ago by Silvano Cerza
Sync a GitHub repository with vaults on different platforms without requiring git installation
Git Changelog
2 years ago by shumadrid
An Obsidian plugin that displays changelogs of the entire vault and individual files in the sidebar by utilizing Git commit history
Browser History
2 years ago by noy4
Sync your browser history to notes.
Anki Integration
2 years ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
Jira Issue Manager
2 years ago by Alamion
Obisdian plugin to sync tasks between Obsidian and Jira
Cubox
a year ago by delphi-2015
Cubox Official Obsidian Plugin
Limitless Lifelogs
a year ago by Maclean Dunkin
Sync your Limitless AI lifelog entries directly into Obsidian markdown files.
Rainbow-Colored Sidebar
a year ago by Kevin Woblick
Automatically color your sidebar like a rainbow. No configuration needed. 18 themes included.
Markwhen File Sync
a year ago by rouvenjahnke
Synchronize properties from your Obsidian notes with a Markwhen timeline file.
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Google Contacts
a year ago by aleksejs1
Obsidian plugin for sync Google Contacts with obsidian notes
Yandex Wiki Integration
a year ago by Pavel Sokolov
Github Issues
a year ago by LonoxX
An Obsidian plugin that integrates with GitHub to track issues and pull requests directly in your vault.
Chatty
a year 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.
Sync-safe file names
a year ago by j-maas
Ensure your Obsidian files can always be synced across all your devices.
MrDoc
a year ago by zmister
An Obsidian plugin for MrDoc that enables two-way synchronization between local Obsidian documents and MrDoc.一个 Obsidian 的 MrDoc 插件,用于 Obsidian 本地文档与 MrDoc 的双向同步
Nutstore Sync
a year ago by nutstore-dev
Hardcover
8 months ago by aliceinwaterdeep
Sync your Hardcover.app library to your Obsidian notes.
YAOS
5 months ago by kavinsood
A zero-terminal, real-time sync engine powered by your own Cloudflare Worker.
Snipd Official
5 months ago by snipd-app
Full Calendar Remastered
4 months ago by obsidian-full-calendar-remastered
Keep events and manage your calendar alongside all your other notes in your Obsidian Vault.
Social Archiver
3 months ago by Jun Lim
Release repository for Social Archiver - Archive social media posts from 8 platforms into Obsidian
Fast Note Sync
3 months ago by HaierKeys
Can be privately deployed, focusing on providing Obsidian users with a seamless, distraction-free note synchronization plugin with real-time sync across multiple platforms, supporting Mac, Windows, Android, iOS, and offering multilingual support.可私有化部署,专注为 Obsidian 用户提供无打扰、丝般顺滑、多端实时同步的多平台笔记同步插件。
Bases Paginator
3 months ago by sean2077
A plugin for Obsidian that adds a paginated table view with column filtering capabilities to Obsidian Bases.
Weread Vault
3 months ago by 茜宁郑
Sync WeRead highlights, import book lists, and connect personal reading notes in Obsidian.
Self-hosted LiveSync
3 months ago by vrtmrz
Cursor-Smith
3 months ago by sadsnake1
Cursor customization engine for Obsidian
Tabsdown
3 months ago by grafanakibana
Create accessible, theme-native tabbed blocks for Markdown-renderable content in Obsidian.
Granola Sync
2 months ago by tomelliot
Sync Granola notes to your Obsidian vault
Sync Engine
2 months ago by Hēsperus
🔄 The fast and extensible synchronization engine for Obsidian.
Community Install Manager
2 months ago by Konstantin Volobuev
Allows you to use `community-plugins.js` to search for and automatically install plugins when you launch `obsidian`.
Dedao Brain Importer
2 months ago by springrain | 公众号: 及时春雨
在原版基础上修复windows无法手动和自动导入问题,以及优化很多格式转换为markdown
EasySync
2 months ago by Jiao Yingxing
EasySync是一款适用于Obsidian的双向OneDrive同步插件,具有冲突保护、移动端支持以及可选的设置/插件同步功能。EasySync is a two-way OneDrive sync plugin for Obsidian with conflict safeguards, mobile support, and optional settings/plugin sync.
Granola Meetings Simple Sync
2 months ago by philfreo
"Granola Meetings Simple Sync" Plugin for Obsidian
Bi Ji Tong Bu
2 months ago by 笔记同步助手
Bi Ji Tong Bu (笔记同步助手) for Obsidian — marketplace edition (no self-update; full disclosures)