-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #845 from juestchaos/main
更新
- Loading branch information
Showing
9 changed files
with
172 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
10-Obsidian/Obsidian社区插件/Thino/02_Thino Advanced/Thino Global Wakeup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
10-Obsidian/Obsidian社区插件/Thino/04_Thino Tips/静读天下摘录批注记录到THino.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
uid: 20240823150047 | ||
title: Obsidian 插件:note definitions 创建属于你自己的术语表 | ||
tags: [术语表, Obsidian插件] | ||
description: note definitions 创建属于你自己的术语表 | ||
author: | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240823150724 | ||
--- | ||
|
||
# Obsidian 插件:note definitions 创建属于你自己的术语表 | ||
|
||
## 概述 | ||
|
||
Obsidian Note Definitions 是一个个人词典插件,可以在笔记中方便地查找。只需在 Obsidian vault 的根目录下创建一个名为 `definitions` 的文件夹,然后在其中创建定义文件,并按照定义规则添加定义。一旦定义注册成功,笔记中的单词将被下划线标记,右键单击单词或使用命令即可触发下拉菜单显示单词的定义。此外,还可以通过编辑器菜单和命令来预览或跳转到单词的定义。插件使用 Markdown 语法解析定义文件,需要遵循严格的规则,包括单词、别名(可选)和定义的顺序,以及使用三个破折号作为分隔符。插件可以帮助用户快速查找笔记中的单词定义,提高阅读效率。 | ||
|
||
> [!Note] 插件名片 | ||
> - 插件名称:Note Definitions | ||
> - 插件作者:Dominic Let | ||
> - 插件版本:0.25.0 | ||
> - 插件概述:打造笔记的个人词典 | ||
> - 插件项目地址:[点我跳转](https://github.com/dominiclet/obsidian-note-definitions?tab=readme-ov-file#definition-context) | ||
> - 国内下载地址:[下载安装]( https://pkmer.cn/show/20240611085920 ) | ||
## 基本用法 | ||
|
||
```mermaid | ||
flowchart TD | ||
A --> B | ||
B --> C | ||
C --> D | ||
D --> E | ||
A["在OB库中新建文件夹(实测不必置于根目录),右键点击选择Set definitions folder命令<br>将该文件夹设定为定义文件夹,也可在插件设置界面键入路径来进行指定"] | ||
B["在定义文件夹中新建的笔记文件将被自动设为定义笔记,可自定义命名"] | ||
C["可以在命令面板中运行Add definition命令并在图形化界面中进行编辑<br>也可以根据语法直接在编辑器中写定义(具体语法见下文)"] | ||
D["一旦成功为术语添加定义,同库中的对应术语将会显示为下划虚线的结构"] | ||
E["将鼠标移至术语上方,则可在悬浮窗口中查看其定义(可在选项中设置鼠标是在停留还是单击时显示悬浮窗口)<br>也可在命令面板中运行Preview definition命令来显示悬浮窗"] | ||
``` | ||
|
||
目前 `定义笔记` 分 `consolidated` 和 `atomic` 两种类型,需要在文档属性中用 `def-type` 指定,如果未在文档属性中指定 `定义笔记` 类型则默认为 `consolidated` 类型,但由于未来的更新可能会改变这一规则,故建议为每一个 `定义笔记` 指定类型,既可通过命令面板中的 `Register consolidated definition type` 或 `Register atomic definition type` 来快捷指定,也可直接在文档属性中写入指定类型: | ||
|
||
``` | ||
--- | ||
def-type: consolidated 或 atomic | ||
--- | ||
``` | ||
|
||
## consolidated 类型定义笔记的语法规则 | ||
|
||
`consolidated` 类型的 `定义笔记` 可以容纳多项定义,适合作为文献笔记的术语表、文学作品的人物表或个人词典的略语表这样单个 `术语` 的 `定义` 较短 | ||
|
||
`定义块`(definition block)是其基本组成部分,由 `术语`、`别名`(可选)、`定义` 和 `分隔符` 构成,必须按照句中的顺序排列,彼此之间需要空一行。 | ||
|
||
- `术语` 是被定义的对象,格式为 `# 术语`,即 Markdown 的标题语法,`术语` 可以是多个单词组成的句子。 | ||
- `术语` 下另起一行可以添加 `别名`,格式为 `*别名*`,即 Markdown 的斜体语法,`别名` 并不是必须的,一个 `术语` 可以有多个 `别名`,`别名` 和 `别名` 之间用英文逗号隔开 | ||
- `术语` 和别名下方直到下一个 `术语` 的语句被视为 `定义`,支持 Markdown 语法,可以跨越多行,由分隔符 `---` 或 `___` 来标记其结束的位置(可在选项中选择) | ||
- 示例: | ||
|
||
``` | ||
# 诸葛亮 | ||
*孔明*,*丞相*,*卧龙* | ||
三国时期政治家、军事家 | ||
--- | ||
``` | ||
|
||
## atomic 类型定义笔记的语法规则 | ||
|
||
顾名思义,`atomic` 类型的 `定义笔记` 仅包含一个 `术语`,适合 `定义` 内容较多的 `术语`,或可配合个人的维基知识库使用 | ||
|
||
- 笔记名即是被定义的 `术语` | ||
- `别名` 在文档属性中用 `aliases` 指定,多个 `别名` 以无序列表的形式写入: | ||
|
||
``` | ||
--- | ||
aliases: | ||
- 别名1 | ||
- 别名2 | ||
--- | ||
``` | ||
|
||
- 笔记内容即是 `术语` 的 `定义`,与其他 OB 笔记的写法无异,自由发挥即可 | ||
|
||
## 指定特定定义笔记 | ||
|
||
一篇笔记可以指定一篇或多篇特定的 `定义笔记`,既可以在命令面板中运行 `Add definition context` 命令并选择所需的 `定义笔记`,也可以直接在笔记的文档属性中添加键 `def-context` 并键入 `定义笔记` 的路径来实现这一效果: | ||
|
||
``` | ||
--- | ||
def-context: | ||
- definitions/定义笔记1.md | ||
- definitions/定义笔记2.md | ||
--- | ||
``` |
59 changes: 59 additions & 0 deletions
59
10-Obsidian/Obsidian社区插件/virtual-linker/virtual-linker-轻松探测全库潜在双链并生成虚拟链接.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
uid: 20240822223821 | ||
title: Obsidian 插件:virtual linker(glossary)轻松探测全库潜在双链并生成虚拟链接 | ||
tags: [双链, 内链, 社区插件] | ||
description: 提供了类似思源笔记虚拟引用的功能,自动为笔记中的文本生成虚拟链接 | ||
author: Chenghuang | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240822224021 | ||
--- | ||
|
||
# Obsidian 插件:virtual linker(glossary)轻松探测全库潜在双链并生成虚拟链接 | ||
|
||
## 概述 | ||
|
||
Virtual Linker 是一款 Obsidian 插件,提供了类似思源笔记虚拟引用的功能,能够自动为笔记中的文本生成虚拟链接,这些链接与保管库中其他笔记的标题或别名匹配。 | ||
|
||
> [!Note] 插件名片 | ||
> - 插件名称:Virtual Linker / Glossary | ||
> - 插件作者:Valentin Schröter | ||
> - 插件说明:`Virtual linker` 插件原名 `glossary`,后在伟大的 `calmwares` 提议下改名,以其功能很像 `思源笔记` 的虚拟引用之故,另有 `note definitions` 功能与之类似,点击笔者昵称可找到有关文章。根据本插件 github 主页的简介,它能自动为笔记中的词句匹配同库中具有相同标题或别名的笔记并生成 `虚拟链接`(virtual link),有助于帮助用户发现潜在的双链关系。 | ||
> - 插件分类:['obsidian 插件 ', ' 双链 '] | ||
> - 项目地址:[点我访问](https://github.com/vschroeter/obsidian-virtual-linker) | ||
> - 国内下载地址:[下载安装](https://pkmer.cn/products/plugin/pluginMarket/?virtual-linker) | ||
## 基本用法 | ||
|
||
- 在默认情况下,本插件会自动检索全库笔记,如果当前笔记中有词句与同库其他笔记的标题或别名相同,则会自动将其转为 `虚拟链接`,无需人工添加。`虚拟链接` 在编辑模式和阅读模式下均可生效, 如果库或文本内容发生变化,链接会保持实时更新 | ||
- `虚拟链接` 类似于 OB 原生的 `内部链接`(internal link),可点击跳转,也可将鼠标移至上方调出悬浮窗口查看,但并不会像 `内部链接` 那样使用双链语法污染文本,也不会在关系图谱或状态栏中的反链出数统计中显示,但如果想将之转为 `内部链接` 也很简单,只消右键点击 `虚拟链接` 在菜单中选择 `Convert to real link` 命令可将 `虚拟链接` 转为 `内部链接`,比系统自带 `出链` 核心插件的 `当前笔记中潜在的链接` 功能转换更为直观和方便 | ||
|
||
## 设置说明(按照从上到下的顺序) | ||
|
||
### Matching behavior | ||
|
||
- `Include aliases` 选项如果开启,则匹配范围内笔记文档属性中的 `alias` 项也将被纳入匹配范围 | ||
- `Only link once` 选项如果开启,则当前笔记中的匹配词只会在第一次出现时显示为 `虚拟链接`,类似于 WIKI 百科的样式,有助于保持页面整洁 | ||
- `Exclude links to real linked files` 选项如果开启,则插件不会为已经存在的 `内部链接` 添加 `虚拟链接` | ||
- `Case sensitive` 选项如果开启,则匹配过程是大小写敏感的,用户可为笔记添加标签(标签文本可在 `tag to match case` 或 `tag to ignore case` 选项中自定义)以调整其大小写敏感度 | ||
- `Include headers` 选项如果开启,则小标题也会被纳入匹配范围 | ||
- `Match only whole words` 选项如果开启,则插件只会对完整的词语进行匹配,关闭则词语的任一部分都会参与部分匹配,如选择了后者,则建议开启 `Suppress suffix for sub word` 将后缀排除在匹配范围之外 | ||
- `Fix IME problems` 选项如果开启,则在当前行内不会实时生成 `虚拟链接`,这是因为在使用输入法输入 QWERTY 键盘无法输入的语言(比如汉语日语韩语等)时,可能会跟插件发生冲突 | ||
|
||
### Matching files | ||
|
||
- `Include all files` 选项如果开启,则可在 `Excluded directories` 选项中将特定文件夹排除出匹配范围,如果关闭这一选项,则可在 `Glossary linker directories` 选项中指定任一文件夹作为专门的 `定义文件夹`。还可以为笔记添加标签(标签文本可在 `tag to include file` 或 `tag to ignore file` 选项中自定义)来决定是将该笔记保留在匹配范围之内,抑或把它清除出革命队伍 | ||
- 在默认状态下,插件设置中的 `Exclude self-links to the current file` 选项处于开启状态,如果关闭则插件会将当前笔记纳入匹配范围,但可能出现 bug | ||
|
||
### Link style | ||
|
||
- `Virtual link suffix` 选项可以自定义 `虚拟链接` 的后缀,可以是图标也可以是文本,后者默认以上标形式表示 | ||
- `Apply default link styling` 选项如果开启,则可在 `.obsidian/snippets/virtualLinks.css` 中修改样式: | ||
|
||
``` | ||
/* 例:将所有虚拟链接的颜色设定为红色 */ | ||
.virtual-link a{ | ||
color: red !important; | ||
} | ||
``` |
7 changes: 2 additions & 5 deletions
7
10-Obsidian/Obsidian社区插件/virtual-linker.md → ...dian社区插件/virtual-linker/virtual-linker.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters