Shopping List
cooklang.shopping-list · v0.1.6
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.
- Type your own items in the box at the top (
Milk 2 l,Sugar 1.5kg,3 lemons), or paste a list to add several at once. Lines are read the same way as in the Cook mobile apps, and names take youraisle.confspelling. They are merged with the recipes' ingredients and can be edited or removed under "Other Items". Lines written by CookCLI or the mobile apps show up here too. - 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); @cooklang/cooklang(cooklang-ingredient-parser compiled to wasm) for typed and pasted lines — seesrc/ingredients.ts. The package imports its.wasmas an ES module, which Node cannot load, so the build copies the file intoout/and the extension instantiates it itself.
Reference: https://cook.md/help/plugins/api and https://cook.md/help/plugins/outlets