Skip to content

[Feat] Selecting Vault Search Result Should Take me to Exact Line in Document #50

Closed

Description

@rrpolanco

When doing an initial vault search (<leader>st) and selecting search result, take me to the beginning of the document instead of the exact hit location.

Activity

  1. self-assigned this
    on May 13, 2026
  2. adibhanna commented on May 13, 2026

    @adibhanna
    Contributor

    Fixed in 44a1210.

    What changed:

    • Restored vault text search results for root-mode vaults by normalizing ripgrep paths like ./demo/note.md before folder classification.
    • Fixed the FZF search columns so body text, title, and path are searched correctly.
    • Added a built-in ranking fallback when FZF returns no rows even though candidates exist.
    • Preserved exact-hit navigation when opening an unloaded note from vault text search.
    • Tuned the result highlight so matches remain visible without the overly strong yellow treatment.

    Verified with:

    • npm run test:run --workspace @zennotes/desktop
    • npm run test:run --workspace @zennotes/app-core
    • npm run typecheck --workspace @zennotes/desktop
    • npm run typecheck --workspace @zennotes/app-core
    • npm run build --workspace @zennotes/desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions