Shopping List
cooklang.shopping-list · v0.1.2
Aisle-grouped shopping lists from Cooklang recipes and menus, with pantry subtraction. Ships with Cook Editor.
Install: cooklang.shopping-list
Shopping List
Aisle-grouped shopping lists from Cooklang recipes and menus. Ships with Cook Editor; also a reference for plugins that use the Cooklang API and outlets.
- Add a recipe or a whole
.menufrom the preview's cart button, the explorer context menu, or the editor title bar. Sub-recipe references are included. - The cart is hidden on Recipe Hub previews: remote recipes are not in your folder, so save one to Drafts first.
- Change each entry's scale, remove entries, check items off.
- Items are grouped by
config/aisle.conf; anything inconfig/pantry.confis subtracted. - The list lives in
.shopping-listand.shopping-checkedat the root of your recipe folder — the same files CookCLI uses.
User guide: https://cook.md/help/plugins/shopping-list
For plugin authors
This plugin uses:
- the
cooklang.api.*commands (generateShoppingList,resolveRecipeReferences,parse/writeShoppingList,parse/write/compactShoppingChecked) — seesrc/cooklang-api.ts; - the
cooklang/recipePreview/toolbarandcooklang/menuPreview/toolbaroutlets inpackage.json→contributes.menus; - a webview view (
src/shopping-list-controller.ts,src/webview/main.ts).
Reference: https://cook.md/help/plugins/api and https://cook.md/help/plugins/outlets