Skip to content

Commit

Permalink
更新README,添加使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Mar 26, 2024
1 parent a3f1ce8 commit abe1b9d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[中文](https://github.com/TCOTC/siyuan-plugin-hsr-mdzz2048-fork/blob/main/README_zh_CN.md)

# SiYuan Highlight search results plugin
# SiYuan Highlight search results plugin

#### How to use

When enabled, a button will be added to the right of the top bar. Click to open the search.

In addition, the shortcut key `Ctrl+Shift+Alt+F` has been added, which can be modified in the Keymap settings.
14 changes: 13 additions & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

# 思源笔记 高亮搜索结果Ⅱ 插件

#### 如何使用

启用后会在顶栏右边添加一个按钮,点击即可打开搜索。

另外还添加了快捷键 `Ctrl+Shift+Alt+F`,可以在快捷键设置自行修改。

#### 其他信息

[原仓库](https://github.com/mdzz2048/siyuan-plugin-hsr) 作者暂停维护插件,所以我 fork 了一份稍作修改

变化:
Expand All @@ -15,4 +23,8 @@

- 每次搜索自动重置搜索结果索引计数为 0
- 只搜索在文档区域内的文本(不包含界面和文档标题)
- 不再搜索到不可视的文本
- 不再搜索到不可视的文本

问题:

- 文本样式会影响搜索结果,这个我不会修。例如用 “1234” 搜索不到 “1**23**4”
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-hsr-mdzz2048-fork",
"author": "TCOTC",
"url": "https://github.com/TCOTC/siyuan-plugin-hsr-mdzz2048-fork",
"version": "0.1.0",
"version": "0.1.1",
"minAppVersion": "2.9.8",
"backends": ["windows", "linux", "darwin"],
"frontends": ["desktop", "browser-desktop"],
Expand Down
2 changes: 1 addition & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
.highlight-search-result .search-dialog {
position: relative;
z-index: 5;
z-index: 6;
}
.highlight-search-result .search-dialog .search-tools div svg[data-id="search-tools-close"] {
height: 10.5px;
Expand Down

0 comments on commit abe1b9d

Please sign in to comment.