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

Disable and copy options for a recipe #707

Closed
rastkov opened this issue Feb 22, 2021 · 4 comments
Closed

Disable and copy options for a recipe #707

rastkov opened this issue Feb 22, 2021 · 4 comments
Labels
idea Idea for a future feature. Issues with this label may be closed and revisited at a later stage.
Milestone

Comments

@rastkov
Copy link

rastkov commented Feb 22, 2021

I think it would be nice to have an option to disable a recipes instead to only be able to delete it and recreate it if needed later on. Perhaps a toggle button next to a recipe?

Also, I found that most of the recipes I create are similar one to another (move/swap window left/right/up/down) with minimal differences. So it might be good to have an option to create a duplicate of an existing recipe.

@vegardlarsen vegardlarsen added the idea Idea for a future feature. Issues with this label may be closed and revisited at a later stage. label Feb 22, 2021
@vegardlarsen
Copy link
Member

This is absolutely something I want to do, and I have been thinking about. This goes well with something else I want to do; namely separating default recipes from user-created recipes, which should simplify the interface around this quite a bit (and at least limit the number of recipes you see by default).

@rastkov
Copy link
Author

rastkov commented Feb 22, 2021

Looking forward to this. Separating default recipes and user-created makes sense.
Perhaps also a bulk import/export option so that people can make a backup of their recipes and share them more easily, rather then one by one as it is now (as far as I can tell and other than saving the config.json from AppData/Roaming).

@vegardlarsen vegardlarsen added this to the 2.2.0-beta.2 milestone Feb 26, 2021
@vegardlarsen
Copy link
Member

I have just finished implementing this, and there is a lot to cover here:

  • Built-in recipes are now saved in the configuration with simply an identifier (something like __builtin.move.left) and a enabled flag. This lets you easily turn off the built-in recipes. It will also allow us to add or remove built-in recipes at a later stage, and new ones will be automatically enabled.
  • There is new UI around this: recipes now have a little badge that marks it as "built-in" or "custom". Built-in recipes cannot be edited.
  • There is now an option to "Use as template" on recipes, that will create a new recipe with the same triggers and ingredients, and this lets you easily modify the built-in recipes.
  • You can filter between "built-in" and "custom" recipes when viewing the recipes.
  • Disabled recipes are highlighted so you know why they won't work.

@vegardlarsen
Copy link
Member

Here's a screenshot:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Idea for a future feature. Issues with this label may be closed and revisited at a later stage.
Projects
None yet
Development

No branches or pull requests

2 participants