Skip to content

Direct Link to file interpreted as wikilink (?) #424

Closed

Description

@cyperion

I wanted to insert a direct link to a file outside my vault like this inside a note:

[example-bash-script](~/.local/bin/example-bash-script.sh)

but when I click on it, zennotes asks me if I want to create a new note (/~/.local/bin/example-bash-script.sh.md).

Is this intended behavior? Did I just miss the correct way?
If not, it would be nice if a feature for direct linking would be added :)

Activity

  1. changed the title [-]Direct Link to file interpreted as Wikilink (?)[/-] [+]Direct Link to file interpreted as wikilink (?)[/+] on Jul 18, 2026
  2. added a commit that references this issue on Jul 20, 2026
    5e6559b
  3. adibhanna commented on Jul 20, 2026

    @adibhanna
    Contributor

    Fixed on the v2.15.0 branch in 5e6559b. You were right that it was a gap, not intended.

    A Markdown link to a file outside the vault (~/…, file://…, or an absolute path) no longer offers to create a …​.md note. Clicking it now opens the file with your system's default app, after a quick confirmation (since it can launch an app). So your example works as expected:

    [example-bash-script](~/.local/bin/example-bash-script.sh)

    Details:

    • Works from the editor (click / Cmd-click / Vim gd) and the reading view.
    • The matcher is conservative: only unambiguous local paths route here. Vault notes, assets, relative links, and .md targets keep their current behaviour, so nothing existing changes.
    • Desktop only (the web build shows a brief 'desktop app only' notice, since a browser has no access to your filesystem).

    While in here I also added a small related nicety: hovering any link now shows its target in the status bar (browser-style), in both the editor and the reading view.

    Thanks for the clear report, @cyperion!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions