V1.0.2: Added option to skip item if

This commit is contained in:
2025-09-16 17:10:24 +02:00
parent 1f5873eeda
commit 1850c7e785
4 changed files with 190 additions and 61 deletions

View File

@@ -29,7 +29,7 @@ Works seamlessly with other recipe plugins — supports fuzzy product matching,
If you use the **HTML comment syntax** (`<!-- grocy_id: … -->`), Recipe View will hide the annotation from the rendered card.
- Omit notes when `grocy_id` is used (configurable) -> Grocy increments cleanly by product/amount only.
- Follow links(e.g. meal plan note) when the active note has no Ingredients section. Traverses linked notes up to a configurable depth.
- Skip items with `grocy_id: 0` -> lets you ignore things like salt, water, or spices entirely.
---
## 📥 Installation
@@ -109,6 +109,18 @@ Or with an HTML comment (**hidden in Recipe View**):
```
This forces the matcher to look for “jalapeño” specifically.
### Skipping items with grocy_id: 0
If you want to mark an ingredient so the plugin does not add it to Grocy (for example: salt, water, or spices), annotate it with:
- Visible form:
`- pinch of salt (grocy_id: 0)`
- Hidden form (works with Recipe View):
`- pinch of salt <!-- grocy_id: 0 -->`
`grocy_id: 0` tells the plugin to skip that item entirely.
---
## 🚀 Example Workflows
@@ -147,3 +159,13 @@ This forces the matcher to look for “jalapeño” specifically.
top: {id:12, name:"Eggs", score:11}
Auto-matched → Eggs
```
---
## Changelog
- 1.0.2: Skip products with `grocy_id: 0`.
- 1.0.1: Follow links if `Ingredients` headline isn't present.
- 1.0.0: Initial release