Skip to content

Backlinks panel: show notes linking to current note #62

Description

@ryuhmanov-m

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

  1. Backend: Query the chunks table for chunks containing [[Current Note Name]] pattern
    • Or parse wikilinks during indexing and store in a links table
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfrontendNext.js / React frontendgood first issueGood for newcomersragRetrieval pipeline, embeddings, search

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions