Giter Club home page Giter Club logo

cooklang-chef's People

Contributors

zheoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cooklang-chef's Issues

Timer in a different language

Is there a possibility to show timer units in a non-English language? If yes, which syntax has to be used?

(Using timer name still shows "minutes" in English.)

Scaling does not work

Testing with a sample water.cook file:

>> time: 3
>> description: Cook water

Put @water{1000%ml} into a #cooker
Press the button
Wait till it boils

Getting message "This value does not scale" this when trying to scale:

image

Potential deprecation of `concolor`

I'm posting this as this project is reported as a dependent of concolor and wanted to both give you a heads up to prepare and an opportunity to discuss in case we should re-evaluate this.

We are proposing deprecating concolor in favor of either

We welcome feedback on this topic at rust-cli/concolor#47

Step counter begins at n+1 in define ingredients mode

Testing with an example file:

>> time: 3
>> description: Cook water (ingredients list)
>> [define]: ingredients
- @water{1%l}
- @more water{2%l}
- @even more water{2%l}

>> [define]: steps
Put water into a cooker
Press the button
Wait till it boils

Getting:

chef recipe test/water-def.cook                                                                                                                                                                                                                                                            ✔ 
 water-def 

│ Cook water (ingredients list)

time: 3m

Ingredients:
  water               1 l 
  more water          2 l 
  even more water     2 l 

Steps:
 4. Put water into a cooker
     [-]
 5. Press the button
     [-]
 6. Wait till it boils
     [-]

Concerns both WebUI and CLI versions.

Add a "clear" button / element for search field

Would be especially helpful for clearing tags.

Maybe it would be nice to enhance the search field even further (like adding filters as UI elements etc.), but this would be a separate request.

Error loading default global config file and rust error

Hello!

With Version 0.8.3-1 i get the following error when running chef list:

Error: Error loading default global config file

Caused by:
    0: Bad TOML data
    1: TOML parse error at line 6, column 1
         |
       6 | [extensions]
         | ^^^^^^^^^^^^
       Unknown extension name

I deleted [extensions] in the configuration file and the list command was functional again.

But when i try chef serve I get the following error and the server wont start:

2024-02-09T22:11:50.984197Z  WARN Config dir `.cooklang` found not in base path. It will be ignored. You may be running the application in the wrong directory.
thread 'main' panicked at /home/jannisf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cooklang-0.13.0/src/parser/block_parser.rs:67:9:
assertion `left == right` failed: Block tokens not parsed. this is a bug
  left: 1
 right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at src/serve/async_index.rs:167:14:
called `Result::unwrap()` on an `Err` value: Error { kind: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" }), paths: ["/home/jannisf/.local/share/Trash/files/home/jannisf/.wine/dosdevices/z:/var/cache/ldconfig"] }

Thank you very much!

Fix release CI builds

  • It currently fails for x86 MacOS
  • I would like to add arm64 MacOS, and arm64 linux.

would be great to re-reference "items" as well as ingredients

thanks so much for putting this together :)

i see you decided to have a syntax to support re-referencing ingedients (awesome!) it would be great if this could be extended to items as well, such as:

Prepare a  #mixing  bowl{} ...

... put veggies in the #&mixing  bowl{}.

thoughts?

Don't index recipes outside a collection

When chef is run outside a collection, a warning should be shown.

The chef serve and chef list subcommands shouldn't be allowed outside a collection. Maybe add a flag to force it.

checkboxes on steps

it'd be extremely convenient if there were checkboxes to tick next to steps so that, while cooking, you could mark things off! 😅

Can I help with german translation as a noob?

Hello!

I really like your project! But as I can't code in a way that helps you, I was thinking if I maybe can help with german translation.

Is this a realistic thought?

Thank you very much!

Unable to view recipe if using full path.

Debian Sid, cooklang-chef 0.8.3

A somewhat recent change made it so you can't use the full path to view a recipe. Using chef recipe works, but chef recipe does not. It produced Error: Recipe not found.

Add arbitrary metadata

Seems currently only time, source, author and description are supported. Specification seems not to limit this, according to examples. Would be nice to have arbitrary metadata keys (especially useful for languages other than English).

shopping-list creation in the ui?

the ui you've made is really lovely; super functional and great.

it would be a dream if it was possible to have a little feature to build a shopping-list from the website

i could imagine it working a bit like a typical shopping-cart; you pick the recipes you want to build the list for, and then you get to see the aggregated items to buy.

thoughts?

Use cooklang as a library

Hi there. I love the project, but I would like to interact with a few components as a library so that I can create a more automated experience.

Specifically, what I'm trying to do is get access to the combined ingredients given a list of recipes so that I can programmatically update my grocery list.

It doesn't seem like this is directly possible, but I am somewhat new to Rust, so I might be missing something. If it is not possible, I'm happy to tackle abstracting this as a PR if that's inline with what you have in mind for the future of the project.

Searching with empty search string shows "No recipes found"

It may be more commonly expected behavior that on search with empty string

  • either all recipes are shown
  • or the user gets some sort of feedback that his search string is empty.

With current behavior, if it happens accidentally, the user may be bewildered or misinterpreting why no recipes are shown (e.g. assuming a bug).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.