Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show non-aliased ingredient names in ingredient list? #38

Open
dfego opened this issue Dec 17, 2024 · 1 comment
Open

Show non-aliased ingredient names in ingredient list? #38

dfego opened this issue Dec 17, 2024 · 1 comment

Comments

@dfego
Copy link

dfego commented Dec 17, 2024

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.

@Zheoni
Copy link
Owner

Zheoni commented Dec 17, 2024

There is already an issue about this in the parser repo cooklang/cooklang-rs#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants