|
| 1 | +## `things-cli` v0.10.0 — the CLI shows what Things shows |
| 2 | + |
| 3 | +A big release, this one: three headline changes and a long list of fixes. Everything since v0.9.0, over a hundred PRs. |
| 4 | + |
| 5 | +**The CLI shows what Things shows.** Every view was compared against the app row by row. `today`, `anytime`, `upcoming`, `someday` and the project, area and tag pages now list the same rows in the same order as the app: a deadline that has arrived pulls an item into Today, a scheduled Someday item appears in Upcoming, This Evening sits last, and a to-do you completed stays where it was until Things moves it to the Logbook. That last one changes the default output, so `--open-only` and the `open_only` config key give the old lists back. |
| 6 | + |
| 7 | +**Writes behave the same way every time.** A lot of this release went on validating that each command does one thing and says what it did. Every write reads its result back from Things, and the refusals and `--json` error tokens are shared across `add`, `edit` and `import`. Behaviour changed in a few places, mainly so that an agent driving the CLI gets a deterministic answer rather than a silent miss: an item that landed somewhere else, a `--when` Things ignored, or a title that happened to match a different task. |
| 8 | + |
| 9 | +**Listings fit the terminal.** Rows adapt to the width they are printed at. Long titles are cut before any column is dropped, dates switch to a compact form (`due:Tue`, `21 Oct`) when the full date will not fit, tags shorten to the first plus a count, and checklist progress and start dates appear on rows when there is room. Piped output is byte-identical to before, so scripts and agents see no change. (#298–#319) Here is `things today` at 80 columns on v0.9.0: |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +and on v0.10.0: |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +### Behaviour changes |
| 18 | + |
| 19 | +- **Default views include closed items Things still shows.** `inbox`, `today`, `anytime`, `upcoming`, `someday`, bare `things`, bare `--project`/`--area` listings and `show --agent` on a project now list to-dos completed or cancelled but not yet moved to the Logbook, as the app does. `--open-only` gives the old output, and the new `open_only` config key makes that the default. `--include-completed` is accepted but does nothing. (#384, #389) |
| 20 | +- **`add` and `project add` print the created item**, in the same form as `things show`, after reading it back. They exit non-zero if the item never appears, or appears somewhere other than where it was sent. Under `--json` a misfiled item is reported as one error object with the token `misfiled`, its `uuid` and where it `landed`. (#332, #381, #393) |
| 21 | +- **Refs that look like a number but are not a row are refused.** `+5`, `#5`, `# 12`, `(#12)`, `No. 12`, `12.` and an all-digit ref that is not a row in the last list now match only an exact title or a uuid. They used to match any title containing them, so `things complete '#12'` could close the wrong task. Dates, times, amounts and version numbers still match part of a title. (#378, #392, #395) |
| 22 | +- **`import` refuses payloads Things would reject.** A `creation-date` or `completion-date` without a full date, time and offset, or a non-text `list`, `list-id`, `heading`, `heading-id`, `area` or `area-id`, makes Things reject the whole payload with an error sheet. The CLI now refuses it before sending anything, as `import refused` with a `reason` per item. (#391, #394, #397) |
| 23 | +- **`--json` no longer escapes `&`, `<` and `>`.** (#286) |
| 24 | +- **Plain `show` prints `Created:` in local time.** JSON timestamps are unchanged (UTC, RFC 3339). (#283) |
| 25 | +- **`complete`, `cancel` and `edit` refuse an item that is in the Trash.** A row number or uuid that now points at a trashed item used to be completed, cancelled or edited silently with exit 0. It is now refused with exit 1 and the `--json` token `trashed`; `show` still opens it and says `Status: Open (in Trash)`. `complete` and `cancel` now print the item they closed, like `edit --complete`. Switching a closed item between completed and cancelled returns the token `already closed`. (#407, #406) |
| 26 | +- **Reminder times are shown.** Task JSON gains `reminderTime` (`HH:MM`, omitted when unset); `show` and `show --agent` put it on the start line, and list rows show it before the title, as the app does. (#405) |
| 27 | +- **`import` refuses more of what Things rejects, and never drops an item from the read-back.** Malformed items (`invalid-item`), blank titles (`blank-title`), wrong JSON kinds for any attribute (`invalid-type`), impossible calendar dates such as month 13 (`invalid-date`), and payloads that create more than 200 items (`too-many-items`, since Things shows a confirmation dialog above that) are refused before sending. Two date forms Things accepts (`+01:00:00`, trailing space) are accepted. A same-titled dated/undated pair no longer fails when both landed. (#412) |
| 28 | +- **`import` refuses what Things would silently mangle.** Duplicate keys, titles and notes over Things' length limits, `items` on a to-do, creation or completion dates in the future, and a `when` or `deadline` Things would misread are all refused before anything is sent, each with its own `reason`. The full list is on the [commands page](https://things.rlew.io/commands/#logbook-and-import). (#418) |
| 29 | +- **A title that belongs only to a closed or trashed to-do no longer reaches a different open one.** `complete "Pay rent"` with "Pay rent" completed and "Re: Pay rent deposit" open used to close the deposit task via the substring fallback; it now fails with `already closed` or `trashed`, lists the `matches`, and touches nothing. Refs are stricter in the same way: a leading zero or a bare `0` is never a row number, a uuid-shaped ref never matches part of a title, and an empty ref is refused. (#422) |
| 30 | +- **`edit --heading ""` clears the heading and `edit --list ""` unfiles the to-do**, and both are read back; they used to print the old location while Things moved the item. Blank titles are refused everywhere, and a `--when` that cannot be a real date or time is refused before anything is sent, while a free phrase Things ignored is reported as such instead of waiting five seconds. (#423) |
| 31 | +- **Deadlines promote items the way the app does.** Any undated open to-do or project whose deadline has arrived is in `today` and `anytime` and leaves `someday`, and one with a later deadline is in `upcoming`; Inbox items stay in the Inbox. `--tag` and `projects` list closed-but-unlogged rows like the other views, `projects --open-only` hides them, and `search` skips to-dos inside a trashed project. (#421) |
| 32 | +- **Row order matches the app.** `today` puts This Evening last under its own header and orders project groups by schedule; `anytime`, `someday`, `--area` and `--tag` list projects before loose to-dos and follow heading order inside a project; `trash` is most-recently-trashed first; plain `logbook` has a date header per day. (#420) |
| 33 | +- **Docs match the binary.** `--deadline` takes English phrases (not `today`/`tomorrow`), `--when 9:30PM` works, RFC 3339 offsets are ignored in favour of the wall clock, `open` and `log` print nothing on success, `~` in `--db`/`--config`/the `db` key follows `$HOME`. (#417) |
| 34 | +- **`import` reads back where each to-do landed.** A `when` Things did not apply (a keyword or date that landed elsewhere, such as `today` with a past deadline, which Things files in the Inbox) is reported `confirmed: false, reason: misfiled` with `landed`, and the import exits non-zero; a free phrase Things ignored is `reason: when`, exit 0, as `add` does. (#428) |
| 35 | + |
| 36 | +### Listings match the app |
| 37 | + |
| 38 | +- `today` orders rows by the day they were placed in Today, newest first, then by their position that day. It also lists undated to-dos whose deadline has come. (#342, #385) |
| 39 | +- `inbox`, `anytime` and `upcoming` follow the app's rules for deadlines, Someday and scheduled projects, and rows Things has not moved into Today yet. (#288, #347, #349, #354, #356, #366, #370) |
| 40 | +- `logbook` follows the "Move completed items to Logbook" setting and holds back everything Things has not logged. (#357, #362) |
| 41 | +- A `--project` listing is in the order of the project's page in the app. (#351) |
| 42 | +- To-dos of a project with no area sit in the no-area group at the top of Today, Anytime and Someday, not after every area. The Logbook no longer hides the logged to-dos of a project that is completed but not yet logged. (#410) |
| 43 | +- Names match the way Things matches them: exact case first, then full Unicode case folding, normalisation, and compatibility forms for project and area titles. (#284, #287, #327, #341, #358, #361, #368, #371) |
| 44 | + |
| 45 | +### Writes are checked |
| 46 | + |
| 47 | +- `add --project`/`--list` and `project add --area` accept a uuid. When several projects or areas share a title, the CLI picks the one Things files into (the smallest uuid; a project beats an area) and says so on stderr. It also notes when the target is completed, cancelled or in the Trash. (#343, #344, #390) |
| 48 | +- `add`, `edit` and `project add/edit` warn when a list, heading or area will not resolve, using Things' own title rules. (#352, #359, #367, #372) |
| 49 | +- The read-back checks the When bucket (Today, This Evening, Anytime, Someday or a date) as well as the list and heading. A `--when` or move Things ignores, or a reminder the item already has, returns at once instead of waiting. (#372, #382, #393, #398, #399) |
| 50 | +- `complete`, `cancel`, `edit --complete` and `edit --cancel` on an item that is already in that state do nothing and exit 0. Switching an item between completed and cancelled is refused. (#384, #388) |
| 51 | +- `import` reads back every item it creates, checks it landed where Things files it (following Things' measured rules for `list`, `list-id`, `heading`, `heading-id`, `area` and nested items), checks a `completion-date` was kept, and exits non-zero naming each item that did not. (#355, #374, #391, #394, #397) |
| 52 | +- Checklist-only edits confirm. (#334) |
| 53 | +- `add` confirms a to-do whose title had a newline (Things stores it as a space), and the search hint it prints on failure is safe to paste. (#404) |
| 54 | +- `edit --tags`/`--add-tags` naming a tag Things does not have treats that tag as no change, so an edit that would otherwise be a no-op returns at once instead of waiting out the read-back and failing. (#330) |
| 55 | +- A row number from a listing of another database (`--db <backup>` then `complete 2`) is refused, and the re-run command printed with a stale-row error keeps `--config`. (#337, #350) |
| 56 | +- To-dos inside a repeating project template count as repeating, so the writes Things drops silently on them are refused before anything is sent. (#340) |
| 57 | +- The read-back accepts a new item in any open project or area sharing the requested title, instead of failing a correct `add` or `import` when titles collide. (#383) |
| 58 | +- A missing row during a status check is retried until the deadline rather than reported at once, and a second prompt in one command no longer loses the input the first one read ahead. (#333) |
| 59 | +- `edit --when today` on an item still in Today from an earlier day is a no-op that returns at once, and `--when <today's date>` on it is no longer reported as misfiled. Things keeps such an item's original start date; the docs now say so. A dropped write on one of these rows that still has its reminder is reported as not applied. (#408) |
| 60 | + |
| 61 | +### `things update` |
| 62 | + |
| 63 | +- New command that updates the CLI the way it was installed (Homebrew, `go install` or the release binary). It installs only the release it checked and stops if that check fails. It uses `GH_TOKEN` or `GITHUB_TOKEN` when set, and falls back to the github.com releases redirect when the API check fails. (#306, #308, #373, #380, #386) |
| 64 | + |
| 65 | +### Also |
| 66 | + |
| 67 | +- "Today" is read once per query from one clock, so a listing that runs across midnight judges every row by the same day, and the day's bounds are right in zones where midnight is skipped or repeated. (#396) |
| 68 | +- Docs: `--include-completed` is documented only where it is accepted; the config template's example `db` path now has the `ThingsData-XXXXX/` segment; the database lookup is derived from `$HOME` and `--db`/`db` is the only override. (#406) |
| 69 | +- The docs site has a Changelog page built from the GitHub release notes, linked from the version on the home page. (#315) |
| 70 | +- Go toolchain 1.26.9 (GO-2026-6617). (#411) |
| 71 | +- The bundled skill and the docs at things.rlew.io are updated for all of the above. Run `things skill install` after upgrading. |
| 72 | + |
| 73 | +### Requirements |
| 74 | + |
| 75 | +macOS with Things3 installed. Binaries for Apple Silicon (`darwin_arm64`) and Intel (`darwin_amd64`). |
0 commit comments