Skip to content

feat: Obsidian vault browser sidebar tab#209

Merged
backnotprop merged 3 commits intomainfrom
feat/obsidian-annotation
Mar 3, 2026
Merged

feat: Obsidian vault browser sidebar tab#209
backnotprop merged 3 commits intomainfrom
feat/obsidian-annotation

Conversation

@backnotprop
Copy link
Owner

Summary

  • Adds a third sidebar tab ("Vault") that browses the user's Obsidian vault file tree
  • Clicking any .md file opens it in the viewer for inline annotation using the existing linked-doc system
  • Wikilink support ([[filename]] and [[filename|display text]]) for navigating between vault files
  • New "Vault Browser" toggle in Settings > Obsidian to enable/disable the tab
  • New standardized reference endpoints (/api/reference/obsidian/files, /api/reference/obsidian/doc) with vault-scoped security

Closes #207

Test plan

  • Enable Obsidian integration + Vault Browser toggle in Settings
  • Open Vault tab in sidebar — full vault file tree loads
  • Click a .md file — viewer swaps, badge says "Vault File", TOC updates
  • Click [[wikilinks]] inside vault files — navigates within vault
  • Add annotations to vault file, go back to plan, re-open — annotations preserved
  • Approve/deny plan — vault file annotations appear in exported feedback

🤖 Generated with Claude Code

backnotprop and others added 3 commits March 3, 2026 13:29
Add a third sidebar tab that lets users browse their Obsidian vault's
file tree, click any markdown file to open and annotate it as part of
plan feedback. Includes wikilink support for navigating between vault
files.

- New /api/reference/obsidian/files and /api/reference/obsidian/doc endpoints
- useVaultBrowser hook and VaultBrowser sidebar component
- Wikilink [[filename]] and [[filename|display]] detection in Viewer
- "Vault Browser" toggle in Settings > Obsidian
- Bare filename search for wikilink resolution within vault

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add new reference endpoints to CLAUDE.md API table
- Update stale doc comments referencing "two tabs" in sidebar files
- Clear vaultPath and activeFile when vault browser is disabled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move VaultNode to packages/ui/types.ts (shared type location)
- Pass useVaultBrowser return as single object prop through SidebarContainer
- Replace showVaultTab/vaultPath useState with useMemo derivations
- Extract buildVaultDocUrl helper to deduplicate URL template
- Wrap onVaultFetchTree in useCallback
- Fix toggle switch size to match existing toggles (h-6 w-11)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@backnotprop backnotprop merged commit e5f3cff into main Mar 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant