czottmann / obsidian-actions-uri

A plugin for Obsidian (https://obsidian.md) that adds additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.
https://zottmann.dev/obsidian-actions-uri/
MIT License
139 stars 6 forks source link

Make `x-*` parameters optional in `/command/execute` route #84

Closed SunnyAureliusRichard closed 9 months ago

SunnyAureliusRichard commented 10 months ago

Hello,

Can command/execute have optional callback parameters instead of required?

I would like to have this URL: obsidian://actions-uri/command/execute?vault=Life&commands=bookmarks%3Aopen

over this one, which opens a browser window unnecessirily: obsidian://actions-uri/command/execute?vault=Life&commands=bookmarks%3Aopen&x-success=http%3A%2F%2Flocalhost%3A8000&x-error=http%3A%2F%2Flocalhost%3A8000

This would be helpful for me on my phone as I can create a URL shortcut that would open obsidian straight to my bookmarks, instead of navigating to bookmarks myself.

Thank you for taking it into consideration.

czottmann commented 10 months ago

Good idea, especially since commands never return values. I'll make x-success and x-error optional in the upcoming version.

czottmann commented 9 months ago

Closing ticket, change is part of https://github.com/czottmann/obsidian-actions-uri/releases/tag/1.5.0