Skip to content

Instantly share code, notes, and snippets.

@ameerdevs
Last active June 11, 2020 20:08
Show Gist options
  • Save ameerdevs/d9eeb567288234eaff44ba47c4ba5bcd to your computer and use it in GitHub Desktop.
Save ameerdevs/d9eeb567288234eaff44ba47c4ba5bcd to your computer and use it in GitHub Desktop.
/* HOW TO USE:
hideChallengeTags: This field can be: true OR false. If it is true, tags from challenges will be hidden.
autoSelected: This is a list of tags you want to have automatically selected when you load the tasks page. Example:
> "autoSelected": ["today", "chores"],
will tell the script to select the tags labeled "today" and "chores" when you navigate to the tasks page.
tagsWithChildren: This option lets you define parent and child tags such that when a child tag is selected,
its parent tag will be selected as well. Example:
> "tagsWithChildren": {
"parent": ["child1", "child2", "child3"],
"someOtherTag": ["wow"]
}
will tell the script to select the tag "parent" when any of "child1," "child2," or "child3" are selected. As
you can see, you can define multiple parent relationships.
exclusive: This option lets you specify tags that are mutually exclusive. Example:
> "exclusive": [
["today", "tomorrow"],
["morning", "afternoon", "evening"]
]
will create two groups of tags that are mutually exclusive. If you select "today," "tomorrow" will be unselected.
If you select "afternoon," "morning" and "evening" will be unselected. And so on.
*/
{
"hideChallengeTags": false,
"autoSelected": [],
"tagsWithChildren": {},
[
["today", "tomorrow"],
["☀️ Morning/Daytime", "🌛 Evening+"]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment