tzk/tzk/editions/tzk/tiddlers/$__sib_Reviewer_SchedulerMacros.tid
Soren I. Bjornstad 14cc96a907 check in editions directory
Although this is automatically generated, it represents a critical part
of the content of the edition which cannot be created from the content
in the repository (it's generated from a private directory on my
computer), so at this point it is appropriate to check it in.
2021-09-21 12:27:23 -05:00

34 lines
1014 B
Plaintext

created: 20210119014145169
modified: 20210331005114060
tags: $:/tags/Macro
title: $:/sib/Reviewer/SchedulerMacros
type: text/vnd.tiddlywiki
\define inbox-setdue(newIvl, newDueDate)
<$action-setfield
ivl=<<__newIvl__>>
due={{{ [<__newDueDate__>trim[]] }}}/>
\end
\define getNextDueDate() <$macrocall $name=daysFromDatestamp datestamp=<<now YYYY0MM0DD>> offset=<<nextInterval>>/>
\define daysFromToday(days) <$macrocall $name=daysFromDatestamp datestamp=<<now YYYY0MM0DD>> offset=<<__days__>>/>
\define inbox-postpone(ivlExpr)
<$set name=nextInterval value=$ivlExpr$>
<$wikify name=nextDueDate text="<<getNextDueDate>>" mode="inline">
<$macrocall $name=inbox-setdue
newIvl=<<nextInterval>>
newDueDate=<<nextDueDate>> />
</$wikify>
</$set>
\end
\define read-status-selector()
<$select field="readstatus" default="">
<option value="unread">unread</option>
<option value="partial">partial</option>
<option value="read">read</option>
<option value="reread">reread</option>
</$select>
\end