Obsidian Instant Above Divider
Obsidian 插件,一键在笔记开头插入分隔线创建新段落,并提供文档大纲视图展示标题和分隔线结构,方便快速导航。
Instant Above Divider
A simple Obsidian plugin that adds a command to instantly insert a divider line (---) at the beginning of the current note.
Features
- 一键插入分隔线 — 在笔记开头快速插入
---分隔线,自动将光标移到开头 - 尊重标题 — 可选在标题后插入分隔线,而非笔记最开头
- 智能处理 Frontmatter — 如果笔记有 frontmatter,分隔线会插入在 frontmatter 之后
- 文档大纲视图 — 显示所有标题和分隔线的结构化大纲
- 点击导航 — 点击大纲项快速跳转到对应位置
- 内容预览 — 分隔线后自动提取前 N 个字符作为预览(可配置,默认 10 字符)
Usage
- 打开 Obsidian Settings > Hotkeys
- 搜索 “Instant Above Divider: Add Section”
- 设置快捷键(推荐:
Option/Alt + Shift + N) - 使用快捷键即可在当前笔记开头插入分隔线
Outline Feature
插件提供文档大纲功能,展示笔记结构:
- 搜索 “Instant Above Divider: Show Outline”
- 设置快捷键(推荐:
Option/Alt + Shift + O) - 大纲显示所有标题(
# ## ###等)和分隔线 - 点击任意项跳转到对应位置
技术栈
- 语言:TypeScript
- 构建:esbuild
- 平台:Obsidian Plugin API