diff --git a/src/content/.obsidian/appearance.json b/src/content/.obsidian/appearance.json index bed7647..60a8c7a 100644 --- a/src/content/.obsidian/appearance.json +++ b/src/content/.obsidian/appearance.json @@ -1,9 +1,10 @@ { "cssTheme": "0xZ", "showViewHeader": true, - "showRibbon": false, + "showRibbon": true, "enabledCssSnippets": [ - "astro-modular-styling" + "astro-modular-styling", + "claude-sidebar-button" ], "theme": "system", "accentColor": "" 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 new file mode 100644 index 0000000..ac2ee91 --- /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. + + 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". + 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; +}