cooklang-chef icon indicating copy to clipboard operation
cooklang-chef copied to clipboard

Show non-aliased ingredient names in ingredient list?

Open dfego opened this issue 1 year ago • 1 comments

Right now as I'm experimenting, it looks like if aliases are used, the alias is used everywhere in the human and web output, and the real name is unused. I'm not sure what the primary use case for aliases is, but I've been using it to be specific in the ingredient list but have a short name. For example, @small onion|onion{1*}(chopped). I want the step to show onion, but the ingredient list to show small onion.

Locally I was able to quickly emulate this behavior in the CLI by using .name instead of display_name() at the relevant point in the code, but I'm not sure if this is behavior that is useful to anyone else. Perhaps having a configuration setting or extension might be helpful? I'm more than happy to code something up if this is something you'd like.

dfego avatar Dec 17 '24 06:12 dfego

There is already an issue about this in the parser repo https://github.com/cooklang/cooklang-rs/issues/18

There I explain the design reasoning for why it works this way. I'll leave this open here as well to maybe, if more people ask, add a configuration setting to chef to change the behavior, but for now I'm hesitant.

Zheoni avatar Dec 17 '24 15:12 Zheoni