Parent issue: #31
Context
Wikilinks ([[Note]]) create connections between notes, but there's no way to see which notes link to the current note (backlinks). This is a core knowledge management feature.
Scope
- Backend: Query the
chunks table for chunks containing [[Current Note Name]] pattern
- Or parse wikilinks during indexing and store in a
links table
- Frontend: Show a "Backlinks" section at the bottom of the note view (or as a panel)
- List note titles that contain links to the current note
- Show a small context snippet around each link
- Click to navigate to the linking note
Approach options
Simple (recommended for GFI): Use kb_search or a direct SQL query for [[note name]] across chunks. No new tables needed.
Advanced (follow-up): Parse wikilinks during indexing, store in a dedicated links table with source_file, target_file, context. More performant for large vaults.
References
- Knowledge workspace:
src/components/knowledge/
- Database queries:
src-tauri/src/adapters/db/
- Chunks table stores indexed content with file paths
Parent issue: #31
Context
Wikilinks (
[[Note]]) create connections between notes, but there's no way to see which notes link to the current note (backlinks). This is a core knowledge management feature.Scope
chunkstable for chunks containing[[Current Note Name]]patternlinkstableApproach options
Simple (recommended for GFI): Use
kb_searchor a direct SQL query for[[note name]]across chunks. No new tables needed.Advanced (follow-up): Parse wikilinks during indexing, store in a dedicated
linkstable withsource_file,target_file,context. More performant for large vaults.References
src/components/knowledge/src-tauri/src/adapters/db/