diff --git a/skills/obsidian-cli/SKILL.md b/skills/obsidian-cli/SKILL.md index 2b9e698..b194f8b 100644 --- a/skills/obsidian-cli/SKILL.md +++ b/skills/obsidian-cli/SKILL.md @@ -51,6 +51,9 @@ obsidian read file="My Note" obsidian create name="New Note" content="# Hello" template="Template" obsidian create name="New Note" content="# Hello" open # also open in Obsidian obsidian append file="My Note" content="New line" +obsidian rename path="folder/note.md" name="New name" +obsidian move path="folder/note.md" to="archive/" +obsidian delete path="folder/note.md" obsidian search query="search term" limit=10 obsidian daily:read obsidian daily:append content="- [ ] New task" @@ -60,6 +63,8 @@ obsidian tags sort=count counts obsidian backlinks file="My Note" ``` +Use `rename` / `move` (not filesystem `mv` or `obsidian eval`) so Obsidian can update wikilinks when that setting is on. Prefer `create` / `append` with `content=` over `eval` for writing note bodies. + Use `total` on list commands to get a count. **Output options placement:** `--copy`, `--json`, `--md`, `--tsv`, and `--csv` only work **after** the command name. Putting them before the command (or before `vault=`) fails — often as `Command "--copy" not found` — because the first token is treated as the command. Prefer `vault=` first when used; put double-dash options last: @@ -97,7 +102,7 @@ After making code changes to a plugin or theme, follow this workflow: ### Additional developer commands -Run JavaScript in the app context: +Run JavaScript in the app context (prefer dedicated commands like `rename`, `move`, `create`, and `append` for vault mutations): ```bash obsidian eval code="app.vault.getFiles().length"