Chobbes / org-chef

A package for making a cookbook and managing recipes with org-mode.
MIT License
327 stars 33 forks source link

Initial implementation of org-chef-edit-servings #70

Closed alexhuntley closed 2 years ago

alexhuntley commented 2 years ago

Adds the command org-chef-edit-servings, which changes the number of servings in the recipe under point and also updates all the quantities under the Ingredients heading.

Useful for meal planning and probably other things...

Chobbes commented 2 years ago

Seems like a good idea! I do worry that it won't work on every recipe, but it will probably help for a lot of them if this is the kind of thing you'd want to do.

alexhuntley commented 2 years ago

Thanks for merging this. I agree it's not perfect, but I've tried to make it relatively robust.

There are a couple of edge cases I can think of which would be hard to implement:

Thankfully these cases seem to be quite rare.