Giter VIP home page Giter VIP logo

cooklang-obsidian's Issues

Can't Preview, requires image file?

Per Nothing is Lost in Obsidian Discord, I can't see preview of my recipe because it looks like there's a bug currently that requires that you have an image file in the same directory as the .cook file that matches the .cook file name.

So if you have myrecipe.cook you need a myrecipe.jpg in the same directory.

Scaling up/down

Note that the scaling is on your Roadmap.

Is this something I can help with?

Can't seem to edit .cook files

What the title says; can't seem to edit the .cook files once they're created, and pasting just shows it in monospace font while remaining uneditable inside Obsidian.

Add auto-pairing of brackets

The plugin should have an option to auto pair brackets like obsidian.
Also didn't realise you were in Australia (I suppose the au in your name should've been a hint)

Style `cookware` as `cookware` in Preview Mode rather than `ingredients`

Hi! Thanks for your plugin, I appreciate it a lot.

I have a small request to get cookware styled as cookware rather than ingredients in Preview Mode. Currently, in Editing Mode, both cookware and ingredients have different classes which allows for the application of different text colours to them
image
image

However, in Preview Mode, they are all styled as ingredients, which makes it harder to differentiate:
image

I hope it's not too much of a hassle, and thank you for the plugin again!

Translations into other Languages

It would be nice if there is a possibility to submit translations for the plugin so that the ingredients and headings are displayed in the correct language (eg. German for me).

I would also be willing to do the translation into German.

.cook files not appearing in dataview results

I have a simple query to return all recent changes in my vault:

LIST FROM #source-notes AND "notes"
WHERE status = "in-progress"
SORT file.name

However, .cook files are not returned from it. Guessing that dataview works from the cache and so the cooklang plugin needs to somehow inform either dataview or the cache of its files.

Disabling the "show quantities inline" option only removes (some) units and not the value

I'm not sure the intention of the "show quantities inline" option: when disabled, the quantities are shown but some display without the units. For example:

Crack the @eggs{3} into a blender, then add the @flour{125%g}, @milk{250%ml} and @sea salt{1%pinch}, and blitz until smooth.

image

Notice that the "g" is missing from the flour measurement and the other units are showing. Enabling this option shows the "g" (and all of the others as well).

No line wrap

image

Wrapping works fine in my .md files. Perhaps it is an issue introduced in a newer Obsidian version since this plugin was released?

SYSTEM INFO:
	Obsidian version: v1.0.3
	Installer version: v0.15.9
	Operating system: Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 21.6.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 4
	Plugins enabled: 4
		1: Dataview v0.5.47
		2: CookLang Editor v0.3.0
		3: Templater v1.14.3
		4: Tasks v1.16.0

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Periods get included in ingredients or cookware.

When I declare an ingredient or piece of cookware at the end of a sentence, it includes the period at the end of the sentence.

Mix it together in a #bowl.

It will list the bowl as bowl..
My current workaround is to write #bowl{}. instead.

Unable to use vim with `.cook` files in obsidian

I am unable to edit cooklang files with vim, even though I have it enabled in the editor.

I'd love to hear a workaround if anyone has any. I have a technical background so I think I can maybe help out with this issue, just not sure where to start. Help would be appreciated!

Project abandoned?

Last commit was over 2 years ago. The project works great already but I'd like to see some of those checklist items worked on.

Does @deathau plan on working on this/merging PRs anymore? Or should this project be forked/replaced/transferred?

Export recipe preview to HTML file

As far as I understand the code of codeview.ts, the formatting of the recipe is done in HTML. So it should be easy to add a command "Export recipe to HTML file" and write the HTML code into a file. This would be very useful to me (and probably to other users as well) in order to create HTML cookbooks and convert them to PDF.

Combine multiple distinct ingredients into single entry

If I have multiple uses of the same ingredient in the same recipe I'd prefer if the total was combined, perhaps with an optional "divided" annotation on the ingredient.

So, for example, if I have a recipe like:

Crack the @eggs{3} into a blender, then add the @flour{125%g}, @milk{250%ml} and @sea salt{1%pinch}, and blitz until smooth.

Separate @eggs{2} into separate bowls.

I get an ingredients list that looks like:

  • 3 eggs
  • 125 g flour
  • 250 ml milk
  • 1 pinch sea salt
  • 2 eggs

I'd prefer to see something like:

  • 5 eggs, divided
  • 125 g flour
  • 250 ml milk
  • 1 pinch sea salt

Cannot create new recipe

It's not apparent how to create a new recipe: I can't find an entry in the command center (searched for "food" and "recipe"), right-click on a folder doesn't have any entry. It's not clear if I can create a file with a .food extension within Obsidian, either: I resorted to creating .md file and then changing its extension in Windows explorer.

System: Windows 10, Obisidian 0.13.2

Support named timers

Thanks for this awesome plugin!

The CookLang spec supports named timers, such as ~egg{3%minutes}, but this syntax does not seem to work yet with the plugin.

Toggle modes in mobile Live Preview

Hi! Love this plugin and just migrated my recipes over. 🍲

With Live Preview mode on mobile, it seems like there is no command to change editing/viewing mode. The Toggle Reading Mode command is not available on .cook files.

Did I just miss something or is there a command missing?

Recipe Titles?

I may be completely missing how to do this, but is there a way to show the title of the recipe in the note once I change to preview mode? I've tried H1 headers, but they end up showing up as a step in the recipe. I feel like maybe this is an issue with cooklang rather than the plugin perhaps?

I don't really use images with my recipes, so it would be immensely helpful for it to show the titles in preview mode.

Better image support

Thank you for making this, @deathau! It looks fantastic.

I think it could be even better if image support was expanded to include the convention adopted by the Cooklang Spec.

In particular, I would like to have my images in an attachment subfolder such that they clutter less. Being able to do:

Attachments/zest_appeal.webp

Would be fantastic.

Additionally webp does not seem to be supported currently - I imagine this might just be expanding a regex?

Multilanguage support

As with Obsidian itself, I would like to have your extension to support mulitple languages, e.g. fr, de, nl, in addition to en, and I could contribute the German translation.

Link between recipes

It would be very useful to be able to make a link between the recipes, for example a tart recipe with a puff pastry ingredient that leads to a puff pastry recipe...
I hope that my proposal is not stupid because it is already integrated...

In any case thank you for your work!

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.