cooklang / cooklang-obsidian Goto Github PK
View Code? Open in Web Editor NEWEdit and display CookLang recipes in Obsidian
License: MIT License
Edit and display CookLang recipes in Obsidian
License: MIT License
Instead of the Step 1, Step 2, etc. headings I would prefer a simple numbered list. Actually, I prefer no numbers, just paragraphs. Can an option be added to control the step style?
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.
Note that the scaling is on your Roadmap.
Is this something I can help with?
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.
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)
Hello!
just an idea I had when looking at this plugin—it would be great if it could make use of the structured recipe markup that most sites have now?
here's source info https://developers.google.com/search/docs/advanced/structured-data/recipe
here's an open source example https://schollz.com/blog/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
However, in Preview Mode, they are all styled as ingredients, which makes it harder to differentiate:
I hope it's not too much of a hassle, and thank you for the plugin again!
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.
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.
It would be really cool if I could have the Obsidian preview open while cooking and tick off steps while I go along by clicking on the checkbox.
I have metadata in my recipe using the >> syntax but after converting to .cook, the metadata doesn't display.
As per comments in #3 to add options to create a recipe file, it makes sense to also put the option in the file explorer context menu at some point.
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.
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).
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.
It would be really great if I could start a timer by clicking on one of the timers defined in the recipe.
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.
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!
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?
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.
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:
I'd prefer to see something like:
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
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.
First, thank you for this plugin!
I noticed that command "Toggle edit/preview mode" does not work in a file with .cook
extension.
However, the button for this command works as expected.
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?
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.
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?
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.
When inserting ingredients/cooking utensils with umlauts or accents they only get partially highlighted. Examples would look like the following:
@ Möre
#Schäler
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.