├── .eslintignore ├── scripts ├── .gitignore └── make_dev_link.js ├── icon.png ├── preview.png ├── asset └── action.png ├── .gitignore ├── svelte.config.js ├── tsconfig.node.json ├── console.log ├── src ├── slash.ts ├── components │ ├── tab │ │ ├── extra-tab.svelte │ │ ├── template-tab.svelte │ │ └── normal-tab.svelte │ ├── dialog │ │ ├── template-dialog.svelte │ │ └── notebook-dialog.svelte │ ├── template-none.svelte │ ├── template-item.svelte │ ├── setting-item.svelte │ ├── setting.svelte │ ├── setting copy.svelte │ ├── template-index-tab.svelte │ ├── template-outline-tab.svelte │ └── setting copy 2.svelte ├── event │ ├── protyleevent.ts │ ├── eventbus.ts │ └── blockiconevent.ts ├── index.ts ├── utils.ts ├── indexnode.ts ├── creater │ ├── createtemplate.ts │ ├── createnotebookindex.ts │ └── createIndex.ts ├── i18n │ ├── zh_CN.json │ └── en_US.json ├── settings.ts └── topbar.ts ├── README_zh_CN.md ├── README.md ├── plugin.json ├── CHANGELOG.md ├── package.json ├── LICENSE ├── .eslintrc.cjs ├── tsconfig.json ├── .github └── workflows │ └── release.yml └── vite.config.ts /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /scripts/.gitignore: -------------------------------------------------------------------------------- 1 | .venv 2 | build 3 | dist 4 | *.exe 5 | *.spec 6 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antimony00000001/siyuan-plugin-index/HEAD/icon.png -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antimony00000001/siyuan-plugin-index/HEAD/preview.png -------------------------------------------------------------------------------- /asset/action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antimony00000001/siyuan-plugin-index/HEAD/asset/action.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .vscode 3 | .DS_Store 4 | pnpm-lock.yaml 5 | package.zip 6 | node_modules 7 | dev 8 | dist 9 | build 10 | -------------------------------------------------------------------------------- /svelte.config.js: -------------------------------------------------------------------------------- 1 | import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" 2 | 3 | export default { 4 | // Consult https://svelte.dev/docs#compile-time-svelte-preprocess 5 | // for more information about preprocessors 6 | preprocess: vitePreprocess(), 7 | } 8 | -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "skipLibCheck": true, 5 | "module": "ESNext", 6 | "moduleResolution": "Node", 7 | "allowSyntheticDefaultImports": true 8 | }, 9 | "include": [ 10 | "vite.config.ts" 11 | ] 12 | } -------------------------------------------------------------------------------- /console.log: -------------------------------------------------------------------------------- 1 | > - [一级标题1](siyuan://blocks/20251024230658-ieu8ue9) 2 | > 3 | > - [3423432](siyuan://blocks/20251024230807-w2kqcot) 4 | > - [标题](siyuan://blocks/20251024230808-hi8k9mf) 5 | > 6 | > - [43143](siyuan://blocks/20251024230813-y7nja7l) 7 | > 8 | > - [425245](siyuan://blocks/20251024230818-jr2k6fp) 9 | > 10 | > - [3423432](siyuan://blocks/20251024230821-mt4px2a) -------------------------------------------------------------------------------- /src/slash.ts: -------------------------------------------------------------------------------- 1 | import { Protyle } from "siyuan"; 2 | import { plugin } from "./utils"; 3 | 4 | export function addSlash() { 5 | plugin.protyleSlash = [{ 6 | filter: ["insert emoji 😊", "插入表情 😊", "crbqwx"], 7 | html: `
${this.i18n.insertEmoji}😊
`, 8 | id: "insertEmoji", 9 | callback(protyle: Protyle) { 10 | protyle.insert("😊"); 11 | } 12 | }]; 13 | } -------------------------------------------------------------------------------- /README_zh_CN.md: -------------------------------------------------------------------------------- 1 | [English](https://github.com/TinkMingKing/siyuan-plugins-index/blob/main/README.md) 2 | 3 | # 目录插件 4 | 5 | # 没有时间和精力维护了,求个大佬来接手 6 | 7 | 启用插件后,会在顶栏右侧生成一个插件图标 8 | 9 | 左键点击插件图标,在当前文档下插入目录列表 10 | 11 | 右键点击插件图标,显示更多操作 12 | 13 | `CTRL + ALT + I`插入目录 14 | 15 | `CTRL + ALT + O`插入子文档目录及大纲 16 | 17 | `CTRL + ALT + P`插入当前文档大纲 18 | 19 | `CTRL + ALT + N`插入笔记本目录 20 | 21 | # 反馈地址 22 | 23 | [反馈地址](https://ld246.com/article/1698684433007) 24 | 25 | # 更新日志 26 | 27 | [CHANGELOG](https://github.com/TinkMingKing/siyuan-plugins-index/blob/main/CHANGELOG.md) 28 | -------------------------------------------------------------------------------- /src/components/tab/extra-tab.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 |
16 | 22 |
-------------------------------------------------------------------------------- /src/components/dialog/template-dialog.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 |