Allow simple maths expressions in the Ingridients editor > Quanitity #3183
Replies: 3 comments 1 reply
-
Personally i am very interested in scenario 2. Even if it's only the scaling option being available during editing the ingredients i'll be happy as i'll be able to scale there, and setting the servings when viewing the recipe will make sense |
Beta Was this translation helpful? Give feedback.
-
I'd gladly drop a few dollars to implement this feature so I can adjust the recipe portions on the fly like doubling, or halving the servings. |
Beta Was this translation helpful? Give feedback.
-
EDIT: ================= I currently parse the recipe down, using the 'scaling' feature. Though you cannot seemingly scale down below 1 via the + and - buttons, you can manually do it. So if a cupcake recipe 'serving' yields 12 cupcakes, I can adjust the scaling to be .25 or something else to yield a lower number. However, it doesn't appear to save that scale, so upon refresh it goes back to the original. Perhaps a 'save as default service / yield' or something? If I am testing a recipe or just making a small batch for myself (more often the case than making a full batch of 12). I know I could adjust the recipe manually to account for a serving to be 3 and then SCALE UP if desired, but a few 'presets' would also be nice. What if you allowed us to enter the desired YIELD and it adjusted the scaling automatically? "This recipe has a yield of 12 cupcakes" and I select "I want 3" and it adjusted based off that. Just thinking through some various ways to get to the same sort of outcome. (Made EDIT above, but this wouldn't cover all scenarios) Thought separate, another 'usability' piece is when entering cook mode, you get the 'serves XY' (if I changed it from 1 serving to .25) but you don't get the YIELD in the cook mode. So I can see I scaled it down, but the original yield of 12 cupcakes into 3 cupcakes isn't shown. Could that easily be added? |
Beta Was this translation helpful? Give feedback.
-
First Check
Please provide a concise description of the problem that would be addressed by this feature.
When editing recipes, I'd often like to use maths expressions like addition, multiplication, division or subtraction for updating the quantity of an ingredient.
Two scenarios I've had, where this would be helpful:
Please provide a concise description of the feature that would resolve your issue.
Allowing simple maths expressions in the quantity field, using a library like
math-expression-evaluator
, would resolve my issue.Feature Request Mockup.webm
Please consider and list out some caveats or tradeoffs made in your design decision
math-expression-evaluator
: 68 kB) to Mealie, unless someone is willing to write a maths parser for this feature request.Additional Information
Beta Was this translation helpful? Give feedback.
All reactions