The dueinnext function allows you to search your wiki for lines which start with a certain keyword which is then followed by a date and filter those so that only those lines with dates in the next n days are listed.

For example you might have a page called MyTasks which contains the following:

@todo 24/02/2017 Take rubbish to tip
@todo 25/02/2017 Paint nursery
@todo 26/02/2017 Trip to theme park
@todo 24/02/2017 Cook dinner
@todo 05/03/2017 Move to new office

Some things to note about the above:

  • The above example uses European date formats, so 24/02/2017 is the 24th February 2017. The date format can be changed in the Trunk Notes settings.
  • It is important that both the month and day are two digits long. So the 6th June 2018 would be 06/06/2018 - not 6/6/2018.
  • The lines on that page could be scattered throughout your wiki.

To then generate a list of all your todo's (that is lines start with @todo) that are due in the next 7 days you would write:

{{dueinnext 7, @todo}}

If you looked at the page on 23rd February you would get the output:

  • 24/02/2017 Take rubbish to tip - MyTasks
  • 24/02/2017 Cook dinner - MyTasks
  • 25/02/2017 Paint nursery - MyTasks
  • 26/02/2017 Trip to theme park - MyTasks

The last item on each line is a link to the page which contained the todo.

Using dueinnext you can create your own custom GTD solution using Trunk Notes.