diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 02a68da..6f63a1a 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ { "name": "obsidian", "source": "./plugins/obsidian", - "description": "Claude Skills for Obsidian", + "description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, web extraction, and templates.", "version": "1.1.0" } ] diff --git a/plugins/obsidian/.claude-plugin/plugin.json b/plugins/obsidian/.claude-plugin/plugin.json index 76fadfe..964c981 100644 --- a/plugins/obsidian/.claude-plugin/plugin.json +++ b/plugins/obsidian/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "obsidian", "version": "1.1.0", - "description": "Create and edit Obsidian vault files including Markdown, Bases, and Canvas. Use when working with .md, .base, or .canvas files in an Obsidian vault.", + "description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, web extraction, and templates.", "author": { "name": "Obsidian", "url": "https://obsidian.md/" diff --git a/plugins/obsidian/skills/json-canvas/SKILL.md b/plugins/obsidian/skills/json-canvas/SKILL.md index fdb4c67..7a60b5d 100644 --- a/plugins/obsidian/skills/json-canvas/SKILL.md +++ b/plugins/obsidian/skills/json-canvas/SKILL.md @@ -225,7 +225,7 @@ Generate 16-character lowercase hexadecimal strings (64-bit random value): | File preview | 300-500 | 200-400 | 450-750 | | Link preview | 250-400 | 100-200 | 375-600 | -**CJK text sizing**: CJK characters (Chinese, Japanese, Korean) are approximately 2× wider than Latin characters. For content primarily in CJK languages, multiply the suggested width by ~1.5× to avoid cramped layouts and awkward line breaks. +**CJK text sizing**: CJK characters (Chinese, Japanese, Korean) are wider than Latin characters. For content primarily in CJK languages, multiply the suggested width by ~1.5× to avoid cramped layouts and awkward line breaks. ## Validation Checklist diff --git a/plugins/obsidian/skills/obsidian-cli/SKILL.md b/plugins/obsidian/skills/obsidian-cli/SKILL.md index 41b597b..c28232a 100644 --- a/plugins/obsidian/skills/obsidian-cli/SKILL.md +++ b/plugins/obsidian/skills/obsidian-cli/SKILL.md @@ -35,7 +35,7 @@ obsidian create name="My Note" open overwrite Use `overwrite` only when replacing an existing file is intended. -Opening is opt-in: pass `open` (or `newtab` where supported) when you want the file to open. There is no `silent` flag. +Opening is opt-in: pass `open` to open the file, and add `newtab` to open it in a new tab. There is no `silent` flag. In `content=`, `\n` becomes a newline and `\t` a tab. Every `\n` and `\t` is converted and there's no escape, so text such as the LaTeX `\theta` or the path `C:\notes` is corrupted. Write content that contains backslashes, or is longer than about 4 KB, directly to the note's file instead. @@ -62,7 +62,7 @@ Use `vault=` when the user has selected a vault. If the target is unclear and th ```bash obsidian read file="My Note" -obsidian create name="New Note" content="# Hello" template="Template" +obsidian create name="New Note" template="Template" # a template replaces content= 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" @@ -94,7 +94,7 @@ obsidian tasks todo format=json # many list commands also accept format= ### Develop/test cycle -After making code changes to a plugin or theme, follow this workflow: +Turn on console capture once with `obsidian dev:debug on`, so messages from the reload are kept. After making code changes to a plugin or theme, follow this workflow: 1. **Reload** the plugin to pick up changes: ```bash @@ -109,9 +109,8 @@ After making code changes to a plugin or theme, follow this workflow: obsidian dev:screenshot obsidian dev:dom selector=".workspace-leaf" text ``` -4. **Check console output** for warnings or unexpected logs. Turn on capture with `dev:debug on` first: +4. **Check console output** for warnings or unexpected logs: ```bash - obsidian dev:debug on obsidian dev:console level=error ``` diff --git a/scripts/bump.sh b/scripts/bump.sh index ba23158..4d36754 100755 --- a/scripts/bump.sh +++ b/scripts/bump.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -euo pipefail +cd "$(dirname "$0")/.." + if [[ $# -ne 1 ]]; then echo "Usage: $0 " >&2 exit 1 @@ -19,10 +21,13 @@ case "$1" in major) new_version="$((major + 1)).0.0" ;; minor) new_version="$major.$((minor + 1)).0" ;; patch) new_version="$major.$minor.$((patch + 1))" ;; - [0-9]*.[0-9]*.[0-9]*) new_version="$1" ;; *) - echo "Usage: $0 " >&2 - exit 1 + if [[ "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + new_version="$1" + else + echo "Usage: $0 " >&2 + exit 1 + fi ;; esac