Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use "follow link" for deeplinks #750

Open
baroldgene opened this issue Oct 14, 2024 · 0 comments
Open

Add ability to use "follow link" for deeplinks #750

baroldgene opened this issue Oct 14, 2024 · 0 comments

Comments

@baroldgene
Copy link

baroldgene commented Oct 14, 2024

🚀 The feature, motivation and pitch

I'm looking to use a todo app outside of Obsidian to manage tasks. You can link to these using deeplinks (e.g things:///show?id=<task_id>). However Obsidian.nvim fails to recognize this as a link and throws an error when attempting to follow it.

I've toyed around locally and it seems simple to alter the regex to match links on to allow for them to fit this style and follow them as normal links. A quick version could just treat deeplinks like web links (NakedUrl) but it might be nice to catch these as separate link types and show an icon to show that it will open an app and not a website.

Also not sure this functionality is great outside of MacOS. Might be good to hide it behind a feature flag to allow it to be enabled as desired.

Alternatives

The builtin open link functionality from Neovim seems to handle these without issue (hotkey is gx or <C-o>). I'd like to be able to use the same hotkey for any link following though as it's hard to remember when to use the Obsidian.nvim one vs the system one.

Additional context

The regex I used to match these (which may be a bit too loose) was:
"%w+:///?[a-zA-Z0-9._-]+[a-zA-Z0-9._#/=&?:+%%-]+"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant