Repository navigation
fix(edit): treat a no-op move as applied and warn on unknown ids - #372
Merged
Merged
Conversation
ryanlewis
force-pushed
the
fix/edit-noop
branch
from
October 4, 2026 01:11
5f623ac to
c32ee0c
Compare
…known ids A move to the list, area or heading an item is already in made Things record no change, so edit and project edit waited and reported a false "did not apply". Those moves now count as no change. An unknown --list-id, --heading-id or --area-id is ignored by Things, as an unknown name is, and now gets the same warning. An unknown --list with --heading is looked up as a heading alone, which is what Things does.
Also note that headings are compared by folded title, and show the ignored --heading-id warning in the docs.
Things matches project and area titles with compatibility folding, so an --area naming the project's own area in fullwidth is also no change.
ryanlewis
force-pushed
the
fix/edit-noop
branch
from
October 4, 2026 01:13
c32ee0c to
3c0b36f
Compare
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.
Four gaps in the edit read-back and the unresolved-target warnings, each checked against Things 3 with throwaway items.
No-op moves. Moving an item to the list, area or heading it is already in makes Things record no change, so
editandproject editwaited for one and reported a false "did not apply". This covered--list,--list-id,--heading,--heading-idandproject edit --area/--area-id. Those moves now count as no change, and an edit made only of them prints the item at once. A to-do under a heading moved to its own project with--listalone does move (it leaves the heading), so that still waits.Unknown ids. Things ignores an unknown
--list-id,--heading-idor--area-id, with no dialog, the same as an unknown name. Each now gets a warning like the name forms, and counts as no change. An unknown--heading-idwith a known list moves the to-do to the list with no heading, as Things does. A known--heading-idwins over a list or heading title sent with it.Unknown
--listwith--heading. Things ignores the list and treats the heading as if it came alone: it looks in the to-do's own project and moves it there if the heading exists. The warning now says so, and the read-back matches.Heading matching. Things matches heading titles untrimmed, case-insensitively, with full case folding (
STRASSEfindsStraße) and NFC/NFD equivalence, the same as list titles. The CLI already used the shared matcher for headings; tests now pin those cases. Things does not match compatibility forms in heading titles:Fulldid not findFull, andx2did not findx².Docs and the bundled skill are updated for the new warnings.