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 URI to run QuickAdd externally #722

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Ovyerus
Copy link

@Ovyerus Ovyerus commented Aug 5, 2024

Adds support for running a QuickAdd choice from an external script or application, through the use of an obsidian://quickadd URI.

The choice to run is given by the choice parameter, and then any variables that are needed by it can be given through additional parameters prefixed with value- (does not work for unnamed variables, those will still prompt the user for input within Obsidian).

Example

obsidian://quickadd?vault=My%20Vault&choice=Daily%20log&value-contents=Lorem%20ipsum.

This runs the choice Daily log and provides "Lorem ipsum." as the contents variables.


Resolves #256, resolves #369, and resolves #648.

Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quickadd ✅ Ready (Inspect) Visit Preview Sep 15, 2024 0:53am

src/main.ts Outdated Show resolved Hide resolved
@chaintng
Copy link

I have tried tested, and looks good 👍
Thank you

@ther0y
Copy link

ther0y commented Sep 19, 2024

Thanks @Ovyerus can't wait to see this merged and ready to use! 😍

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