No description
Find a file
2025-11-20 16:41:57 +08:00
screenshot Update README 2024-10-13 12:46:55 +08:00
src 优化历史记录淘汰规则 2025-11-20 16:18:44 +08:00
.editorconfig Initial commit 2024-10-10 14:46:07 +08:00
.eslintignore Initial commit 2024-10-10 14:46:07 +08:00
.eslintrc Initial commit 2024-10-10 14:46:07 +08:00
.gitignore update ignore file 2025-11-19 13:48:30 +08:00
.npmrc Initial commit 2024-10-10 14:46:07 +08:00
esbuild.config.mjs Update 2024-10-26 14:10:38 +08:00
LICENSE Create LICENSE 2024-10-11 16:22:10 +08:00
manifest.json Update Version 2025-11-19 17:03:19 +08:00
package.json Update Version 2025-11-19 17:03:19 +08:00
README-zh_CN.md Update README 2025-11-20 16:41:57 +08:00
README.md Update README 2025-11-20 16:41:57 +08:00
style-settings.css 增加Style-settings插件的预设 2025-01-25 10:15:14 +08:00
tsconfig.json add i18n support 2024-10-10 15:14:45 +08:00
version-bump.mjs Initial commit 2024-10-10 14:46:07 +08:00
versions.json 修改版本号 2024-10-13 13:04:33 +08:00

Obsidian Text Finder

English
中文说明

This plugin for Obsidian(https://obsidian.md).
Provides a search/replace window similar to VSCode in editing mode.

Note: The Obsidian API is still in early alpha and is subject to change at any time!

Feature

Search or replace the text of the current MarkDown file in editor mode.

  • Search/Replace in current file
  • Highlight matching text
  • Show number of matches
  • Supports regular expressions
  • Supports case sensitivity
  • Input history

To Do

  • Search/Replace in Selection

ScreenShot

Text Finder

How to use

Install

Community plugins

  • Search for "text finder" in the community plugins and install it.
  • Enable plugin in Obsidian setting.

BRAT

  • Install the BRAT Plugin
  • Execute command Obsidian42 - BRAT: Add a beta plugin for testing
  • Paste the URL of this repository and confirm
  • Enable plugin in Obsidian setting.

Source Code

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run build to build file in ./dist.
  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/text-finder/.
  • Enable plugin in Obsidian setting.

Releases

  • Download main.js, styles.css, manifest.json in the latest release
  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/text-finder/.
  • Enable plugin in Obsidian setting.

Settings

  • Assign a hotkeys for the plugin's command.

Customize Style

Use CSS snippets or Style Settings Plugin to customize styles.

Example Style Settings configuration file.

Here are some CSS snippets examples.

Match Highlight and Current Item

.nya-text-finder-match {
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgb(60, 115, 75);
	background-color: inherit;
	color: inherit;
}

.nya-text-finder-match-current {
	box-shadow: 0 0 0 1px rgb(187, 187, 187);
	background-color: rgba(255, 170, 0, 0.8);
	color: black;
}

Change Position

Top Left

.nya-finder {
	right: unset !important;
	left: 376px;
}

Bottom Right

.nya-finder {
	top: unset !important;
	bottom: 72px;
}

Bottom Left

.nya-finder {
	top: unset !important;
	right: unset !important;
	left: 376px;
	bottom: 72px;
}

Change the border color when focused

body {
	--nya-focus-border-color: #39c5bb;
}

Change the color of the collapse button

.nya-toggle {
	border-left: 3px solid red !important;
}