Fancy grocery list

What I’m trying to do

I’m trying to create a template to write a recipe where each ingredient has a checkbox at the beginning. If that checkbox is checked then that item gets copied to a grocery list with a link back to the recipe that it came from.
Example:
Ingredients:

1 Cup FlouR

2 Cups Sugar

Grocery list:

2 Cups Sugar from “Recipe Name”

Things I have tried

I looked into Templator. It looks possible with enough efffort but very tricky to accomplish/maintain.

1 Like

Yes it is possible with the Templater plugin, but as you said it will require some effort.

Alternatively, you could use the Bases plugin, which I think would be easier.

For the grocery list you could use an embedded search for completed tasks and however you identify recipes. For example if your recipes are all in a folder named “Recipes”:

~~~query
path:"recipes/" todo-done:/./
~~~

The /./ is a regular expression matching any character (so it will show all completed tasks).

If you don’t like how embedded searches look, you can change their visual style with a CSS snippet like Smoother looking embedded search (CSS snippet).

If you want the search to become actual Markdown text in the note, you can use the Text Expand community plugin.

1 Like

Thanks for the tips! I’ll start here and see how far I get.

This might help