-
Notifications
You must be signed in to change notification settings - Fork 42
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
Sync shopping list #103
Comments
Yes, as of now the shopping list is stored in browser's local storage, not on a server. That's an interesting use-case, I don't mind changing CLI to store the shopping list on server side, but I don't have time at the moment to do that. |
OK cool, good to know! |
This is what I'm using as a workaround for now, quite happy with it! function cook-sl
set ingredients $(
# Get all recipes from vault
find ~/obsidian/Recipes/*.cook \
# fzf, showing just the basename as a label, with a cooklang preview on the side
| fzf --delimiter / --with-nth 6 --multi --preview "cook recipe {}" \
# Send those chosen recipes to `cook`, with the given aisle config
| xargs -d "\n" cook shopping-list --aisle ~/obsidian/Recipes/config/aisle.conf
)
for ingredient in $ingredients
# Lines starting with [ are aisle groupings
if test $(string sub -l 1 $ingredient) = '['
echo ""
echo "**$( string sub -s 2 -e -1 $ingredient )**"
echo ""
else
echo "- [ ] $ingredient"
end
# Pipe echos into shopping list, overwriting the file
end >~/obsidian/Recipes/Shopping\ List.md
echo "Shopping list updated"
end |
Cool, that's smart! |
Possibly more of a question.
In my setup, I
cook server
from a raspberry pi, thentailscale serve
that to my other devices.If I add a recipe to my shopping list on one device, it doesn't show up on the shopping list of a different device. I assume the list is stored locally in the browser, or something.
Is this possible to achieve? Please let me know if there is more info I can share to assist.
The text was updated successfully, but these errors were encountered: