Yaemikoreal/dsh-plugin-obsidian ↗★ 0

dsh-plugin-obsidian

连接Obsidian进行笔记快速检索、读写与同步 适合Obsidian用户,便于AI直接管理本地知识库、读写日记或同步笔记内容。

套件
dsh-plugin-obsidian
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月23日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yaemikoreal/dsh-plugin-obsidian

3. 配置(可选)

不配置也能用:自动发现 Obsidian 注册表里最近打开的仓库。

需要指定仓库或调整行为时,在 profile 的 patch 文件(%USERPROFILE%\.dsh\profiles\ \cordis.patch.yml)里加:

- id: obsidian
  name: dsh-plugin-obsidian
  config:
    vault: 'C:\Users\you\Documents\My Vault'                   # 固定活动仓库
    vaults:                                                    # 额外仓库
      - 'D:\Notes\Work'
    excludes:                                                  # 额外排除的 glob
      - 'templates/**'
    indexTtlMs: 3000
    maxCacheBytes: 50331648
    readOnly: false
    dailyFolder: Daily
    dailyFormat: YYYY-MM-DD
    # rest:
    #   enabled: true
    #   baseURL: http://127.0.0.1:27123
    #   apiKey: '...'      # 一般不需要,自动从插件 data.json 读取

配置会在挂载时校验,写错会明确报错(未知键也会报错)。切换/新增仓库后会把选择持久化到 %USERPROFILE%\.dsh\obsidian-plugin.json。

已知限制:DSH 的插件设置页只会为 zod 定义的配置渲染表单,本插件为了零依赖用的是 Standard Schema,所以那里显示为 unsupported(不影响使用,配置写在上面的 YAML 里即可)。