Obsidian Helper — Obsidian 辅助工具
v1.0.1Operate Obsidian vaults from command line. Use when the user wants to 列出, 搜索, 创建, read, edit, or 删除 Obsidian notes, or manage dAIly notes. Triggers on mentions of "obsidian笔记", "obsidian notes", "obsidian搜索", "obsidian创建", "obsidian列表", or any Obsidian vault operations.
运行时依赖
安装命令
点击复制技能文档
Obsidian 辅助工具
A command-line 工具 for operating Obsidian vaults. Works with vaults stored on Windows (WSL) or Linux.
安装ation Quick 安装 (Recommended)
运行 the 安装 script:
cd ~/技能s/obsidian-辅助工具 bash scripts/安装.sh
This will:
Copy obsidian script to ~/bin/ Make it executable 添加 ~/bin to your PATH (if not already present) 验证 安装ation which obsidian obsidian --version # or obsidian help
Quick 启动 obsidian 列出 # 列出所有笔记 obsidian 搜索 关键词 # 搜索笔记内容 obsidian 创建 文件名 # 创建新笔记 obsidian read 文件名 # 读取笔记 obsidian edit 文件名 # 编辑笔记 (vim) obsidian dAIly # 创建/查看日报 obsidian 删除 文件名 # 删除笔记
Configuration
The script auto-检测s the vault path:
环境 variable (highest priority):
导出 OBSIDIAN_VAULT=/path/to/your/vault
WSL 环境: Auto-检测s Windows user directory
/mnt/c/Users//Documents/Obsidian
Linux 环境: Uses default path
~/obsidian
设置 your Obsidian vault path (optional - auto-检测s if not 设置):
# 添加 to ~/.bashrc echo '导出 OBSIDIAN_VAULT=/mnt/c/Users/YourName/Documents/Obsidian/Vault' >> ~/.bashrc source ~/.bashrc
Commands Reference Command Aliases Description 列出 ls, l 列出 all markdown notes in vault 搜索 s, find 搜索 content in notes 创建 [content] c, new 创建 new note read r, cat, show Read note content edit e, vim Edit note in vim dAIly [date] d, today 创建/view dAIly note 删除 del, rm 删除 a note help h Show help Examples # 列出 all notes obsidian 列出
# 搜索 for "project" obsidian 搜索 project
# 创建 a note in a folder obsidian 创建 "Projects/MyProject"
# 创建 with content obsidian 创建 "Ideas/Quick Note" "# Quick Note\n\nThis is my idea."
# Read a note obsidian read "Welcome"
# 创建 today's dAIly note obsidian dAIly
DAIly Notes
DAIly notes are stored in DAIly/YYYY/YYYY-MM-DD.md 格式化.