Skip to content

Commit

Permalink
Merge pull request #49 from obgnail/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
obgnail authored Aug 1, 2023
2 parents 6376f20 + fb4a203 commit 0c026c3
Show file tree
Hide file tree
Showing 6 changed files with 759 additions and 653 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ JSBridge.invoke('executeJavaScript', 1, "_myValue=123; JSBridge.invoke('executeJ



### multi_highlighter:多关键字高亮(暂时禁用)
### multi_highlighter:多关键字高亮

搜索并高亮关键字,并提供一键定位功能(左键下一个,右键上一个)

Expand All @@ -147,7 +147,7 @@ JSBridge.invoke('executeJavaScript', 1, "_myValue=123; JSBridge.invoke('executeJ

> 注意:当你鼠标点击文档内容时,会自动退出高亮状态。**这是 Typora 本身的限制导致的**:高亮功能是通过添加标签实现的,但是为了保证数据安全,`#write` 标签不允许手动添加任何标签,所以需要在编辑的时候 remove 掉之前添加的标签。(你可以试试 Typora 自身的 ctrl+F 搜索,在搜索关键字后,点击任意地方原先高亮的地方也会消失)
> 已知BUG:**Typora 对于大文件会惰性加载代码块,导致代码块里面添加的标签会被刷新掉。暂时默认关闭此脚本,待解决后重新开启。**
> 注意:此脚本在使用期间会消耗大量内存,**不建议在大文件中使用**


Expand Down
2 changes: 2 additions & 0 deletions plugin/_obgnail__typora_plugin.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://github.com/obgnail/typora_plugin
2 changes: 1 addition & 1 deletion plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ window.onload = () => {
name: "多关键字高亮",
fixed_name: "multi_highlighter",
src: "./plugin/multi_highlighter/index.js",
enable: false,
enable: true,
clickable: true,
},
{
Expand Down
Loading

0 comments on commit 0c026c3

Please sign in to comment.