Skip to content

fix(db): trim surrounding spaces in list and projects name filters - #327

Merged
ryanlewis merged 1 commit into
mainfrom
fix/name-trim
Oct 3, 2026
Merged

ryanlewis merged 1 commit into
mainfrom
fix/name-trim

Conversation

@ryanlewis

Copy link
Copy Markdown
Owner

Closes #289

list --tag/--area/--project and projects --area now trim the value before it reaches the LIKE filter, the way db.FoldTag does for open. So things list --tag 'Ärger ' finds the tag, as things open --tag 'Ärger ' already did.

The trim is a small nameLike helper next to literalLike, used at the four filter sites and in NamesRepeatingProject, which explains an empty --project listing and has to match the same way. Title search (containsLike) is unchanged. docs/content/commands.md now says names ignore case and surrounding spaces.

Tests: leading and trailing space for --tag, --area, --project and projects --area.

@ryanlewis
ryanlewis merged commit 974d460 into main Oct 3, 2026
10 checks passed
@ryanlewis
ryanlewis deleted the fix/name-trim branch October 3, 2026 14:10
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.

bug: list and projects name filters don't trim surrounding spaces, where open does

1 participant