Skip to content

feat(config): add open_only to make --open-only the default for listings - #389

Merged
ryanlewis merged 2 commits into
mainfrom
feat/open-only-config
Oct 7, 2026
Merged

ryanlewis merged 2 commits into
mainfrom
feat/open-only-config

Conversation

@ryanlewis

Copy link
Copy Markdown
Owner

#384 made the default listings include closed items that Things hasn't logged yet. This adds an open_only config key, so a setup that wants the older output can have it by default.

Behaviour

  • open_only = true seeds --open-only on the list command only (things today, things inbox, a bare things, and so on). It is scoped the same way assume_yes is scoped to complete and cancel.
  • --open-only=false overrides it for one call. Kong already accepts =false on bool flags; --json=false works the same way.
  • --include-completed also overrides it. It sits in an xor group with --open-only, so without this kong would refuse to combine it with a value that came from the file. A new YieldsTo field on config.Key stops the resolver supplying open_only when that flag is on the command line.
  • logbook and trash ignore the setting. A --open-only typed on the command line is still rejected there, as before.
  • The cached re-run command records --open-only=false when that override was used, because the re-run reads the same config file.

Checked with the built binary

I used a temp config with open_only = true against the live database, plus a probe to-do added to Today, completed, and trashed afterwards:

run rows probe
things today 26 absent
things today --open-only=false 27 completed, shown as [x]
things today --include-completed 27 completed
things today, no config 27 completed
things logbook 1163 rows, no error
things logbook --open-only --open-only is not supported on the "logbook" view

things config show lists open_only true config.

Docs

configuration.md (key table, template, config show sample, valid-keys example, scoped keys, agent notes), commands.md, agents.md, README.md and internal/skill/SKILL.md.

make test and make lint pass.

@ryanlewis
ryanlewis merged commit 5881306 into main Oct 7, 2026
10 checks passed
@ryanlewis
ryanlewis deleted the feat/open-only-config branch October 7, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant