From e9da8e1fd26591a8970df3223107f234c57e22af Mon Sep 17 00:00:00 2001 From: Oz Tamir Date: Tue, 23 Jun 2026 13:35:16 +0300 Subject: [PATCH 1/2] feat(vaultcms): add a minimal-ribbon snippet for the Claude Sidebar button VaultCMS hides the Obsidian ribbon (showRibbon:false), which also hid the Claude Sidebar plugin's "New Claude Tab" button. Adds an enabled CSS snippet that shows a slim ribbon containing only the "Open home base" and "New Claude Tab" buttons (matched by aria-label), so the Claude button sits next to home-base without bringing back the full ribbon. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/content/.obsidian/appearance.json | 3 +- .../snippets/claude-sidebar-button.css | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/content/.obsidian/snippets/claude-sidebar-button.css diff --git a/src/content/.obsidian/appearance.json b/src/content/.obsidian/appearance.json index bed7647..ae30860 100644 --- a/src/content/.obsidian/appearance.json +++ b/src/content/.obsidian/appearance.json @@ -3,7 +3,8 @@ "showViewHeader": true, "showRibbon": false, "enabledCssSnippets": [ - "astro-modular-styling" + "astro-modular-styling", + "claude-sidebar-button" ], "theme": "system", "accentColor": "" diff --git a/src/content/.obsidian/snippets/claude-sidebar-button.css b/src/content/.obsidian/snippets/claude-sidebar-button.css new file mode 100644 index 0000000..4d89397 --- /dev/null +++ b/src/content/.obsidian/snippets/claude-sidebar-button.css @@ -0,0 +1,36 @@ +/* ============================================================================= + claude-sidebar-button.css — VaultCMS snippet for the oz-blog content vault. + + VaultCMS hides Obsidian's left ribbon (appearance.json "showRibbon": false) + for a clean CMS look, which also hides the Claude Sidebar plugin's + "New Claude Tab" button. This snippet shows a MINIMAL ribbon containing only + the home-base and Claude buttons — so "New Claude Tab" sits right next to + "Open home base" without bringing back the rest of the ribbon icons. + + Ribbon buttons are matched by their aria-label (the title passed to + addRibbonIcon): home-base → "Open home base", claude-sidebar → "New Claude Tab". + If a future Obsidian version renames these classes and the buttons stop + appearing, fall back to a hotkey (Settings → Hotkeys → "Claude") or set + "showRibbon": true. + ============================================================================= */ + +/* Re-show the left ribbon strip even though "Show ribbon" is off. */ +.workspace-ribbon.side-dock-ribbon.mod-left { + display: flex !important; +} + +/* Hide every ribbon plugin icon by default… */ +.workspace-ribbon.side-dock-ribbon.mod-left .side-dock-ribbon-action { + display: none !important; +} + +/* …then reveal only the two we want (they render in ribbon order). */ +.workspace-ribbon.side-dock-ribbon.mod-left .side-dock-ribbon-action[aria-label="Open home base"], +.workspace-ribbon.side-dock-ribbon.mod-left .side-dock-ribbon-action[aria-label="New Claude Tab"] { + display: flex !important; +} + +/* Drop the ribbon's collapse chevron so the strip stays clean. */ +.workspace-ribbon.side-dock-ribbon.mod-left .workspace-ribbon-collapse-btn { + display: none !important; +} From c2d923f5b0acf4e94bfe7b82b7653088cd02839d Mon Sep 17 00:00:00 2001 From: Oz Tamir Date: Tue, 23 Jun 2026 13:41:41 +0300 Subject: [PATCH 2/2] feat(vaultcms): slim ribbon with the Claude Sidebar button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable the ribbon (showRibbon:true) so the Claude Sidebar plugin's "New Claude Tab" button renders, and let the claude-sidebar-button snippet trim the ribbon to just the "Open home base" + "New Claude Tab" buttons — a slim two-icon strip rather than the full ribbon. Also records the claude-sidebar plugin in the vault (community-plugins.json + manifest/data; plugin code stays untracked per the existing ignore). Co-Authored-By: Claude Opus 4.8 (1M context) --- src/content/.obsidian/appearance.json | 2 +- src/content/.obsidian/community-plugins.json | 3 ++- .../.obsidian/plugins/claude-sidebar/manifest.json | 10 ++++++++++ .../.obsidian/snippets/claude-sidebar-button.css | 10 +++++----- 4 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 src/content/.obsidian/plugins/claude-sidebar/manifest.json diff --git a/src/content/.obsidian/appearance.json b/src/content/.obsidian/appearance.json index ae30860..60a8c7a 100644 --- a/src/content/.obsidian/appearance.json +++ b/src/content/.obsidian/appearance.json @@ -1,7 +1,7 @@ { "cssTheme": "0xZ", "showViewHeader": true, - "showRibbon": false, + "showRibbon": true, "enabledCssSnippets": [ "astro-modular-styling", "claude-sidebar-button" diff --git a/src/content/.obsidian/community-plugins.json b/src/content/.obsidian/community-plugins.json index c509075..34a3d80 100644 --- a/src/content/.obsidian/community-plugins.json +++ b/src/content/.obsidian/community-plugins.json @@ -19,5 +19,6 @@ "file-name-history", "nested-properties", "vault-nickname", - "link-as" + "link-as", + "claude-sidebar" ] \ No newline at end of file diff --git a/src/content/.obsidian/plugins/claude-sidebar/manifest.json b/src/content/.obsidian/plugins/claude-sidebar/manifest.json new file mode 100644 index 0000000..c68ab23 --- /dev/null +++ b/src/content/.obsidian/plugins/claude-sidebar/manifest.json @@ -0,0 +1,10 @@ +{ + "id": "claude-sidebar", + "name": "Claude Sidebar", + "version": "1.8.10", + "minAppVersion": "1.0.0", + "description": "Run Claude Code in your sidebar.", + "author": "Derek Larson", + "authorUrl": "https://github.com/derek-larson14", + "isDesktopOnly": true +} diff --git a/src/content/.obsidian/snippets/claude-sidebar-button.css b/src/content/.obsidian/snippets/claude-sidebar-button.css index 4d89397..ac2ee91 100644 --- a/src/content/.obsidian/snippets/claude-sidebar-button.css +++ b/src/content/.obsidian/snippets/claude-sidebar-button.css @@ -1,11 +1,11 @@ /* ============================================================================= claude-sidebar-button.css — VaultCMS snippet for the oz-blog content vault. - VaultCMS hides Obsidian's left ribbon (appearance.json "showRibbon": false) - for a clean CMS look, which also hides the Claude Sidebar plugin's - "New Claude Tab" button. This snippet shows a MINIMAL ribbon containing only - the home-base and Claude buttons — so "New Claude Tab" sits right next to - "Open home base" without bringing back the rest of the ribbon icons. + The ribbon is enabled (appearance.json "showRibbon": true) so the Claude + Sidebar plugin's "New Claude Tab" button has somewhere to render. This snippet + then TRIMS the ribbon to just the home-base and Claude buttons — so the result + is a slim two-icon strip (Claude next to "Open home base") rather than the full + ribbon. (A reload of Obsidian is needed after changing the snippet.) Ribbon buttons are matched by their aria-label (the title passed to addRibbonIcon): home-base → "Open home base", claude-sidebar → "New Claude Tab".