Skip to content

sweep: a new link to a root note whose name is not unique can resolve to another note #251

Closed

Description

@frostyard-machines

Kind: inconsistency. Severity: low (a link can open a note that the user did not pick).

Rule: docs/specs/rpc-api.md lines 1795 and 1797, the vault's new-link format:

shortest: The file's name when that resolves to it, else its path (Obsidian's default).
absolute: Its path from the vault's root.

Where (commit 83fb2a5):

Why it matters: Completion or a drag inserts a link to the note the user chose, but it opens another note. This is the case that shortest exists to handle (a name that is not unique).

Suggested fix: Check that the written text resolves back to p from the linking note (with markdown.Resolve), and write a rooted path (/Plan) when it does not; add a test with a root note and a same-name note in the linking folder.

Activity

  1. added
    sweep
    on Nov 19, 2026
  2. added a commit that references this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweep

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions