Repository navigation
fix(db): match project and area titles across Unicode compatibility forms - #371
Merged
Merged
Conversation
…orms Things matches list and area titles in things:///add and add-project across compatibility forms: fullwidth letters, superscript digits, circled letters, a no-break space, Roman numerals and the like. It does not do this for tag names. The --project and --area filters, open --area, and the add, edit and project add warnings now fold project and area titles the same way (Unicode compatibility caseless match). Tags, headings and title search keep the canonical fold. Exact-case names are still preferred.
ryanlewis
force-pushed
the
fix/compat-names
branch
from
October 4, 2026 01:09
5ea7be3 to
3f804dc
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.
Things matches project and area titles across Unicode compatibility forms, but the CLI did not. So
--project/--areamissed titles that Things would match, andadd,editandproject add/editwarned that a list or area would not resolve when Things filed the item there anyway.What Things does
I checked this in Things 3 with throwaway items, using
list=inthings:///addandthings:///update,area=inadd-projectandupdate-project, andtags=inadd, and read the results back over AppleScript. Each form was tested both ways round (compatibility form typed, plain title stored, and the reverse):A,aA²2ⒷBfifiⅣ,㎏,…,½IV,kg,...,1⁄2CafévsCafeThis is Unicode's compatibility caseless match (NFKC plus case folding). Accents still count.
Change
FoldName(SQL:fold_name()) applies the compatibility caseless match. It is used for project and area titles in the--project/--areafilters,open --area,AddTarget(the add/edit warnings) and theproject add/editarea warning.FoldCase.%folds to%.commands.md,agents.md) and the bundled skill.Checks
make testandmake lintpass. New tests coverFoldNameagainstFoldCase, the filters,FindAreaUUID/FindTagUUID,AddTargetand theproject addwarning. The golden SQL changed only byfold(becomingfold_name(.add --list <fullwidth title>andproject add --area <superscript title>, and Things filed both correctly anyway. This branch gives no warning.edit --listandproject edit --areawith fullwidth and circled forms moved the items as expected.