Repository navigation
fix(json): report a scheduled row Things has not moved yet as anytime - #370
Merged
Merged
Conversation
Just after midnight, a to-do scheduled for the new day can still be start = 2 until Things runs its day-change maintenance. Since #366 the listings file it under today, as the app does, but --json still said "someday". The task and project queries now report start = 1 for an open, untrashed row in that state, the code Things gives it when it moves the row. Closed and trashed rows keep start = 2: Things never moves them. The plain-text listing gains the today star on that row, as every other to-do scheduled for today has.
Things never moves a repeating template or a to-do inside one, so
shownStart leaves them at start = 2, as the views leave them out of
today. The task query now substitutes every placeholder rather than the
first, since the select list carries {{repeating}} twice.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just after midnight, a to-do scheduled for the new day can still have
start = 2until Things runs its day-change maintenance. #366 made the listings file it under today, as the app does, but--jsonstill said"start": "someday".The change
shownStartininternal/db/tasks.go, decides the start a row reports. Both the task query (today, anytime, upcoming, show, search and the rest) andthings projectsuse it.start = 2row dated today or earlier (the samescheduledArrivedtest fix(views): list a scheduled row Things has not moved yet under today #366 uses) reports"anytime", the code Things gives it when it moves the row."someday". Things never moves them: the live database held 22 closed and 17 trashedstart = 2rows dated days back. Repeating templates and the to-dos inside them keep"someday"too, as the views leave them out of today.{{repeating}}placeholder, not just the first, because the select list carries it twice.The plain-text listing also gains the today star on that row, as every other to-do scheduled for today has.
Checked against the live database (read-only)
At 01:59 on 4 Oct 2026, GEY9AMabfDMQk6KmNb3zTs was still in this state. I compared main with this branch across today, anytime, upcoming, someday, logbook, trash, repeating and projects, in plain text and JSON. The only differences were on that one row:
"start": "someday"became"anytime"in the today and anytime JSON, and the row gained★in the plain-text today and anytime listings. Everything else was byte-identical.Docs
SKILL.md, commands.md and agents.md now say such a row reports
"anytime".