From 086e1e95e929f559f901ff28843fbd073168c59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=9D=BE=E6=B6=9B?= Date: Thu, 5 Nov 2026 11:20:50 +0800 Subject: [PATCH] docs: clarify empty Bases headers and refresh prerequisites --- skills/obsidian-bases/SKILL.md | 6 ++++-- skills/obsidian-cli/SKILL.md | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/skills/obsidian-bases/SKILL.md b/skills/obsidian-bases/SKILL.md index b6370c7..8608769 100644 --- a/skills/obsidian-bases/SKILL.md +++ b/skills/obsidian-bases/SKILL.md @@ -7,7 +7,7 @@ description: Create and edit Obsidian Bases (.base files) with views, filters, f ## Prerequisite -Bases is a **core plugin** introduced in Obsidian v1.9, but it is **not always enabled by default** — particularly in vaults that predate v1.9. If `.base` files don't appear in the file tree or won't render, check that `.obsidian/core-plugins.json` contains `"bases": true`. Enable via Settings → Core plugins → Bases, or edit the JSON and reload the vault. +Bases is a **core plugin** introduced in Obsidian v1.9, but it is **not always enabled by default** — particularly in vaults that predate v1.9. If `.base` files do not render as a database, enable Bases via Settings → Core plugins → Bases. ## Workflow @@ -362,7 +362,7 @@ properties: note.author: displayName: Author formula.status_icon: - displayName: "" + displayName: "Status" formula.reading_time: displayName: "Est. Time" @@ -500,6 +500,8 @@ properties: This asymmetry trips users up because `order`, `filters`, and `groupBy` all accept the bare form. The `properties:` block is the exception. +**Empty `displayName` does not hide a table header**: `displayName: ""` falls back to the property name, just like omitting `displayName`. For example, `formula.status_icon` displays `status_icon`. Use a non-empty name such as `displayName: "Status"` to customize the header. + **Referencing undefined formulas**: Ensure every `formula.X` in `order` or `properties` has a matching entry in `formulas`. ```yaml diff --git a/skills/obsidian-cli/SKILL.md b/skills/obsidian-cli/SKILL.md index 61b8c52..18c7b76 100644 --- a/skills/obsidian-cli/SKILL.md +++ b/skills/obsidian-cli/SKILL.md @@ -11,7 +11,7 @@ Use the `obsidian` CLI to interact with a running Obsidian instance. Requires Ob The `obsidian` binary ships with the **installer**, not with the auto-updated asar bundle. If `which obsidian` returns nothing, the user is most likely missing one of these: -1. **Installer is too old.** Obsidian on macOS has two version numbers: the asar bundle (shown in Settings → About) auto-updates, but the installer at `/Applications/Obsidian.app` does **not**. The in-app "check for updates" only covers the asar — it can report "you are on the latest version" while the installer is multiple versions behind. CLI binary requires installer ≥ 1.10. Check via: +1. **Installer is too old.** Obsidian on macOS has two version numbers: the asar bundle (shown in Settings → About) auto-updates, but the installer at `/Applications/Obsidian.app` does **not**. The in-app "check for updates" only covers the asar — it can report "you are on the latest version" while the installer is multiple versions behind. The [official CLI installation guide](https://help.obsidian.md/cli) requires the 1.12 installer and recommends 1.12.7 or later. Check via: ```bash defaults read /Applications/Obsidian.app/Contents/Info.plist CFBundleShortVersionString @@ -19,7 +19,7 @@ The `obsidian` binary ships with the **installer**, not with the auto-updated as If old, download the latest from and reinstall (vault data is unaffected). -2. **CLI not enabled.** Settings → General → Advanced → toggle "Enable command line interface" ON. This installs the shim to `/usr/local/bin/`. +2. **CLI not enabled.** Settings → General → enable **Command line interface**, then follow the prompt to register the CLI. 3. **PATH not refreshed.** Open a new terminal after enabling. @@ -38,10 +38,10 @@ If all three succeed, the CLI is ready. When the CLI cannot be installed (older Obsidian, restricted host, etc.), most vault operations are still doable via direct file access: - Read / edit notes: read or edit the `.md` file directly -- Toggle core plugins: edit `.obsidian/core-plugins.json` and ask the user to reload (`Cmd+P → Reload app without saving`) +- Toggle core plugins: use Settings → Core plugins - Open a file: `open "obsidian://open?vault=&file="` -Note: direct file edits won't trigger Obsidian's index refresh until the vault reloads. +Allow Obsidian to detect external file changes before querying the updated content. ## Command reference