Update to Date Controls plugin?

I’m a heavy user of Christian Y.'s Date Controls plugin. Unfortunately, it doesn’t yet do the new 4.7 planned dates.

Has anyone updated the plugin?

1 Like

As of just a moment ago, the Date Controls plug-in now provides an updated copy of the plug-in with support for Planned Dates!

5 Likes

Thanks very much, @valyria!

Holy cow that was fast! Thanks!!

1 Like

I have updated the plug-in but the planned section is greyed out? I’ve restarted OmniFocus and logged in and out of my account, but still the same. Any ideas?

Are you using OmniFocus 4.7 or the OmniFocus 4.7.1 test build?

In the 1.1 version I had shortcuts set for +1 and -1 day/week. It seems the 1.2 version doesn’t have -1 day/week actions anymore yet the old shortcuts still work somehow.

How is this possible? And more importantly, how can I assign -1 day/week shortcuts to planned days?

(I don’t have the code for the 1.1 version anymore so can’t see how it was done there.)

BTW: the popup in the dialog of the “Set new dates” action is not yet upgraded for planned dates, see below.

Apologies, this is a bug! We’ll have a new version of the plug-in available soon that corrects that, as well as another bug where the Clear Due Date action cleared your planned dates and the Clear Planned Date action would clear due dates.

2 Likes

Sorry, updating the Set New Dates action to support planned dates requires a bit more time than I can devote just now, but that will be coming.

As for the shortcuts you have to do -1 day/week/etc. I believe you must have an additional plug-in(s) to facilitate that. But when I have time to look at updating the Set New Dates action, I can certainly look into adding -1 increment support as part of the Date Controls plug-in.

1 Like

Set new dates: not that important for me 😀

Biggest questions on my mind are:

  1. Why do my -1 shortcuts still work even though there are no such actions in 1.2?
  2. Where are the shortcuts stored?
  3. If I were to add -1 actions, do you have a GitHub so I can issue a pull request?

4.71 Test Build

  1. Why do my -1 shortcuts still work even though there are no such actions in 1.2?
  2. Where are the shortcuts stored?
  3. If I were to add -1 action, do you have a GitHub so I can issue a pull request?
  1. This is where my assumption is you must have another plug-in or plug-ins providing this functionality, unless there is something funny at play here.

  2. I can’t speak to how things are stored “under the hood”, but you can inspect the shortcuts you have assigned to plug-in actions by going to Automation > Configure… in the menu bar. Click the “i” button for a plug-in, and there you can see and set shortcuts for any actions that plug-in provides. (Forgive me if that is stating the obvious since you’ve obviously assigned shortcuts already in the past).

  3. There isn’t a GitHub for this plug-in, but if you do add the -1 actions yourself, you can email it to us, and it will find its way to me.

The updated plug-in with the fix for the 4.7.1 validation issue is now available for download here.

4 Likes

No, no other plugin. Just Date Controls. But turns out after I restarted OF the -1 functionality is gone, so my thinking was these functions were simply still loaded/not overwritten by the new version. And, on second thought, I think I added them to the plugin. So I guess I’ll have to do this again :)

@valyria Now that I remember that it was me who created these “Minus” actions, I just redid them. In lieu of a pull request, here is the plugin with my changes as a git repo for your review. In essence, for every *Plus* file, I created a corresponding *Minus* file with any occurrence of 1 or +1 replaced with -1 and updated manifest.json accordingly. Pretty trivial.

of-date-controls.omnifocusjs.zip (141.0 KB)

Forgot to turn the “7” in the *MinusWeek* actions into “-7” 🤦‍♂️ so here is the fixed git repo. Sorry.

Also changed the version to “1.2.1-tk2” to indicate that it’s branched off @valyria’s 1.2.1 version.

of-date-controls.omnifocusjs-1.2.1-tk2.zip (157.4 KB)