From 856640528f7156e3143373dd05b6b64c2ac89d49 Mon Sep 17 00:00:00 2001 From: arimu1 <19286898+arimu1@users.noreply.github.com> Date: Sat, 1 Aug 2026 16:55:27 +0700 Subject: [PATCH] docs(obsidian-cli): drop silent flag; document output option placement Align skills/obsidian-cli/SKILL.md with current Obsidian CLI (1.12.x): - remove silent (no longer exists; opening is opt-in via open/newtab) - note --copy/--json/--md/--tsv/--csv only work after the command Fixes #129 --- skills/obsidian-cli/SKILL.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/skills/obsidian-cli/SKILL.md b/skills/obsidian-cli/SKILL.md index 0046c45..2b9e698 100644 --- a/skills/obsidian-cli/SKILL.md +++ b/skills/obsidian-cli/SKILL.md @@ -22,9 +22,11 @@ obsidian create name="My Note" content="Hello world" **Flags** are boolean switches with no value: ```bash -obsidian create name="My Note" silent overwrite +obsidian create name="My Note" open overwrite ``` +Opening is opt-in: pass `open` (or `newtab` where supported) when you want the file to open. There is no `silent` flag. + For multiline content use `\n` for newline and `\t` for tab. ## File targeting @@ -46,7 +48,8 @@ obsidian vault="My Vault" search query="test" ```bash obsidian read file="My Note" -obsidian create name="New Note" content="# Hello" template="Template" silent +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 search query="search term" limit=10 obsidian daily:read @@ -57,7 +60,16 @@ obsidian tags sort=count counts obsidian backlinks file="My Note" ``` -Use `--copy` on any command to copy output to clipboard. Use `silent` to prevent files from opening. Use `total` on list commands to get a count. +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: + +```bash +obsidian tasks todo total --copy +obsidian vault="My Vault" search query="TODO" --copy +obsidian tasks todo format=json # many list commands also accept format= +# Wrong: obsidian --copy vault="My Vault" tasks todo +``` ## Plugin development