chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.57k stars 141 forks source link

Add URI to run QuickAdd externally #722

Open Ovyerus opened 3 months ago

Ovyerus commented 3 months ago

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.

vercel[bot] commented 3 months ago

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
chaintng commented 2 months ago

I have tried tested, and looks good 👍 Thank you

ther0y commented 2 months ago

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

LandonSchropp commented 1 month ago

@chaintng Is there any chance this could get merged? I'd love to use this. 😄

chaintng commented 1 month ago

@LandonSchropp Unfortunately, I'm not the maintainer 😅

for now, if u sync to laptop. u can use vscode to edit these file manually

until maintainer merged this MR and release new version

LandonSchropp commented 1 month ago

@chaintng Ah, gotcha. My bad. Thanks!