This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: red; icon-glyph: check; | |
"use strict"; | |
/** | |
* Widget to get a Todoist task based on a filter | |
* If a filter has multiple sections, will get a random task from first section that has tasks | |
* The script remembers last selected task, and keeps showing that task while it matches above | |
* condition (being part of first section with tasks). |