This file contains hidden or 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
| // This adds a counter of completed vs total checklist items in a note as a file | |
| // property whenever you update the note. | |
| // I use this together with the TaskNote plugin's Kanban view to give me a "Trello"-like | |
| // experience of items that are still open/completed at a quick glance. | |
| // Customize as you see fit - it might differ based on which task statuses you | |
| // use with Obsidian, for example, or which property names you want. | |
| // | |
| // Pre-requisites: the QuickAdd and Linter plugins | |
| // | |
| // Alternative: turning this into a proper plugin and/or a more complex bases query? |
This file contains hidden or 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
| #!/usr/bin/python3 | |
| from ansible.plugins.callback import CallbackBase | |
| class CallbackModule(CallbackBase): | |
| CALLBACK_VERSION = 2.0 | |
| CALLBACK_TYPE = 'notification' | |
| CALLBACK_NAME = 'package_tracker' | |
| def v2_runner_on_ok(self, result): |