Repository navigation
fix(list): prefer the exact-case name for --area and --tag - #358
Merged
Merged
Conversation
list --area and --tag, and projects --area, matched every title equal to the name ignoring case. Things lets two areas or tags differ only by case, so naming one listed both. They now take names the way --project does since #341: an exact-case title wins, and only with none does the filter fold case and trim.
ryanlewis
force-pushed
the
fix/list-exact-case
branch
from
October 3, 2026 22:58
a8f80fd to
8cf1708
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.
What was wrong
list --area X,list --tag Xandprojects --area Xmatched every area or tag whose title equals X ignoring case. Things lets two areas or two tags differ only by case, so naming one listed both.open --area/--tag(#284) andlist --project(#341) already prefer the exact-case title.What changed
There are two new helpers next to
projectNameMatchininternal/db/tasks.go,areaNameMatchandtagNameMatch. They follow the same rule:nameLike.Areas and tags are never trashed, so the trashed-item exception from #341 doesn't apply. The list views'
--areaand--tagfilters use the helpers, and so doesthings projects --area. The golden SQL file is regenerated; only the area and tag clauses and their arguments changed. commands.md and SKILL.md now say exact case applies to--areaand--tagtoo.How it was tested
internal/db/namecase_test.goset up two areas and two tags that differ only by case. They check exact case, the other case, all caps, a padded name and a uuid, for both list filters and forprojects --area. They failed before the change and pass now.make testandmake lintpass.personalbesidePersonaland tagsZzCaseandzzcase.anytime --area personallisted 1 task,--area Personal10, and--area PERSONAL11.projects --areaand--tagbehaved the same way.