obsidian-occura-plugin README

项目的 README,来自 github.com/Krusty84/obsidian-occura-plugin。合并为一个 markdown 文件:README.md。

Occura Plugin: highlighting word occurrences

Why another plugin?

I couldn't find the usual functionality that I used in Notepad++ or different IDEs, where double-clicking on a word immediately showed me how often it appears in the open document.

Features

Release 1.6.3

Support for Obsidian color schemes has been added, thanks to dear werunom for the idea. image

image

Release 1.6.2

This release stabilizes occurrence matching and navigation across Source Mode, Live Preview, and Reading View. Counts now cover the complete note, Unicode word boundaries are supported, short selections are debounced, and permanent highlight/tag commands avoid protected Markdown regions.

Keyboard shortcuts are configured through Obsidian Settings → Hotkeys. Occura does not install global keyboard handlers or reserve built-in Find shortcuts.

Release 1.6.1

No new features. Some issues has been fixed.

Release 1.6.0

New features has been added:

  1. Dynamic occurrences highlighting, words classes highlighting now works in Reading View too, not only in Source or Live Preview mode
image

2. Added navigation between occurrences with new commands and configurable hotkeys: - Go to next occurrence - Go to previous occurrence image

image

3. Added support for highlighting repeated phrases with spaces, not only single words image

image

4. Added a context menu action to quickly add the selected word into an existing word class image

image

Release 1.5.1

No new features. Various minor issues with Obsidian's expansion quality rating system have been resolved, I hope. I'm preparing for more functionality, so stay tuned for updates.

Release 1.5.0

New features has been added:

  1. You can create classes of words with individual colors, for example terms from different domains, parasite words, etc
image

Release 1.4.1:

The issues with selecting special chartes like $ # % @ has beein fixed, thanks dear Logovaz26

Release 1.4.0:

New features has been added:

  1. Added case insensitivity mode for dynamic word selection

  2. Keywords can be uploaded/downloaded to/from a plain text file with a comma separator between words

  3. Added a reset button to default settings

image

Release 1.3.2:

Some bugs have been fixed, thanks dear BlackUdon

Release 1.3.1:

Some bugs have been fixed, thanks dear BlackUdon

Release 1.3.0:

Automatic highlighting of keywords (It works only in Source or Live preview mode!)

New settings has been added image

New command has been added

image

Release 1.2.0:

Convert found occurrences to tags (It works only in Source or Live preview mode!)

New command has been added

image

Release 1.1.0:

Permanent Highlighting for found occurrences (It works only in Source or Live preview mode!)

New command has been added:

  1. Set permanently highlight for occurrences
  2. Remove permanently highlight for occurrences

image

When Occura has highlighted the available occurrences, call the command: Set permanently highlight for occurrences and then the occurrences will be highlighted by the regular for Obsidian.md by color

image

And call the: Remove permanently highlight for occurrences command to remove the previously set highlight

Release 1.0.0:

Basic functionality

Installing the plugin

Manually installing the plugin

For platform and mode verification, see MANUAL_TESTING.md.

License

MIT

Author

Alexey Sedoykin

obsidian-occura-plugin (Krusty84/obsidian-occura-plugin)

正在搜索数据库…

这是什么?这是一个 Obsidian 第三方插件,可以在打开的笔记中,把你双击的单词或短语的其他所有出现位置都高亮显示,方便你看到它出现了多少次。
它是独立的应用,还是 Obsidian 里的功能?它是一个在 Obsidian 内部运行的插件,不是单独的程序。你可以从“第三方插件”中安装,也可以手动把文件复制到你的库中。
怎么让它运行起来?打开 Obsidian 设置,进入“第三方插件”,选择“浏览”,搜索 Occura Plugin,安装并开启它。如果要手动安装,把 main.js 和 manifest.json 复制到你库的 .obsidian/plugins/obsidian-occura-plugin/ 文件夹中,然后在“第三方插件”里启用它。
除了 Obsidian,还需要别的东西吗?不需要。README 中只提到 Obsidian 本身,没有其他服务、账号或 API 密钥。
它在 Obsidian 的所有视图里都能用吗?并非完全可以。自动关键词高亮、永久高亮和转换为标签的命令仅在源码模式或实时预览模式下可用。从 1.6.0 版开始,按词类高亮也可以在阅读视图中使用。
作者为什么要自己开发,而不直接用现有工具?作者习惯在 Notepad++ 和 IDE 中双击单词,查看它在当前文档中出现的次数,但没有找到能在 Obsidian 中实现这一功能的插件。
我能把单词分组并设置不同颜色吗?可以。从 1.5.0 版开始,你可以创建带有独立颜色的词类,例如把不同领域的术语或填充词分别归类,还可以通过右键菜单把选中的单词加入某个词类。
它支持短语匹配,也不区分大小写吗?支持。它不仅能高亮单个词,还能高亮带空格的重复短语,并提供不区分大小写的模式。关键词可以通过逗号分隔的文本文件导入或导出。
我能把找到的出现位置变成永久高亮或标签吗?可以。通过命令可以为出现的位置设置或取消永久高亮,另一个命令可以把找到的出现位置转换为标签,这些功能都仅在源码模式或实时预览模式下可用。
作者
Krusty84
大小
0.3 MB
星标
345
时长
2年
提交 · 90 天