Skip to content

Commit

Permalink
feat: ✨ integrate with 'Tag Tasks Due Today' plug-in
Browse files Browse the repository at this point in the history
adds action to remove 'Due Today' tag as set by ['Tag Tasks Due Today' plug-in](https://github.com/ksalzke/custom-complete-omnifocus-plugin)
  • Loading branch information
ksalzke committed Mar 8, 2022
1 parent f1f2d9c commit f88a317
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CustomComplete.omnifocusjs/Resources/customCompleteLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
await lib.checkDependants(task)
lib.noteFollowUp(task)
lib.removeUnwantedTags(task)
lib.removeDueSoonTag(task)
await lib.promptIfStalled(task)
}

Expand All @@ -54,6 +55,11 @@
task.removeTags(tagsToRemove)
}

customCompleteLib.removeDueSoonTag = task => {
const plugin = PlugIn.find('com.KaitlinSalzke.TagTasksDueToday')
if (plugin !== null) plugin.library('tagDueTasksLib').onComplete(task)
}

customCompleteLib.promptIfStalled = async task => {
const functionLibrary = PlugIn.find('com.KaitlinSalzke.functionLibrary').library(
'functionLibrary'
Expand Down

0 comments on commit f88a317

Please sign in to comment.