-
Notifications
You must be signed in to change notification settings - Fork 37
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
Allow inline geo:
links to open in Map View by default
#144
Comments
I looked into this in the early days of the plugin and was unable to find a good way to do it with the Obsidian API (even after consulting in the plugin-dev Discord channel). However, it's great that you bring it up now, because I actually think it's very much possible nowadays! |
Just wanted to update here that I spent a few hours on it in the past weeks with no luck yet (kidnapping Obsidian's link handling in Edit mode is overly complicated), but I won't give up until I get it to work! |
I finally managed to figure out how to utilize an editor extension to do this and it works 😎 |
I just released this in 3.1.0 and would love some feedback if it works for you as expected. |
(rolled back the release because I made a mistake in the process, will hopefully re-release it tomorrow) |
(update: fixed and re-released now) |
It's currently possible to open inline links in Map View by right clicking and selecting "Open in Map View", but left clicking will attempt to open a
geo:
handler (which doesn't work on Windows, and several other platforms - #114, #115). I'd like to be able to choose the default left click action to opengeo:
, the Map View, or one of my Custom "Open In" actions. This seems to be a feature others are interested in as well.Unsure how best to implement this while keeping the
geo:
url scheme in the markdown files (#18) - wondering if it would be possible to override the click event for inline geo links and either allow it to pass through, orpreventDefault()
based on plugin settings?The text was updated successfully, but these errors were encountered: