ahonn / logseq-plugin-todo

A simple to-do list plugin for logseq
MIT License
157 stars 11 forks source link

Feature Request - Add Option to Show Future Tasks in the next 'n' Days #9

Closed adxsoft closed 1 year ago

adxsoft commented 2 years ago

Nice work .. very useful plugin. It would be even more powerful if you could view future tasks for a chosen period so the display would look like this (assuming today is Wednesday 1st June 2022 and there are two future todo's and there is a setting for 'Future period in days' set to 14 days)

Today [ ] task for today

Next 14 days [ ] put out the garbage on Friday 2022-06-03

[ ] doctors appointment 3pm next Monday 2022-06-06

Scheduled etc etc

The query for the future period would be something like this

{:title "📅 NEXT 14 DAYS"
    :query [:find (pull ?h [*])
            :in $ ?start ?next
            :where
            [?h :block/marker ?marker]
            [(contains? #{"NOW" "LATER" "TODO"} ?marker)]
            [?h :block/page ?p]
            [?p :block/journal? true]
            [?p :block/journal-day ?d]
            [(> ?d ?start)]
            [(< ?d ?next)]]
    :inputs [:today :14d-after]
    :collapsed? false}]}
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.13.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

ahonn commented 1 year ago

image

This feature is now supported, please update to the latest version and turn on this switch.