Skip to content

[Feature Request] Better URI recognition #764

Description

@shreesha-hegde

Current behavior:
Custom URI schemes such as zotero:// are treated as internal links. Clicking a link such as:

[zotero](zotero://open-pdf/library/items/W78FUE98)

prompts ZenNotes to create a new note named zotero://open-pdf/library/items/W78FUE98.md rather than opening the URI externally.

Feature request:
It would be useful to have a way to explicitly identify custom URI schemes as external links. Possible approaches:

a) Recognize valid external URI schemes (including custom schemes such as zotero://) and handle them as external links rather than internal note links.

b) Alternatively, provide syntax for forcing a link to be treated as external. For example, in addition to the existing:

[text](link)

support something like:

[text]((link))

where the user can use double parentheses to indicate that the link should be handled as an external URI.

c) Provide a GUI setting where users can register custom URI schemes (e.g. zotero://, obsidian://, vscode://).

The ideal solution would be c), since it is probably the easiest. However, a) and c) are probably best from a "standards" perspective as they would not require ZenNotes-specific syntax.

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions