feat: inherit category from active filter on add #10

Merged
jwarykowski merged 1 commit from feat/add-inherits-filter-category into master 2026-07-11 12:08:00 +00:00
jwarykowski commented 2026-07-11 12:06:58 +00:00 (Migrated from github.com)

Adding a task on a category-filtered board now tags it with that category, so it stays in view instead of vanishing.

behavior

  • filterCategory() returns the active filter only when it exactly matches a configured category or one already in use.
  • modeAdd applies it when the quick-add has no inline @category.
  • Inline @category still wins; a non-category filter (project name, partial, due) leaves the item uncategorized — no mis-tagging.

tests

TestAddInheritsFilterCategory: inherit / inline-override / non-category no-op / configured-but-unused. Full suite + golangci-lint clean.

Docs: launch-filter section in README updated.

Adding a task on a category-filtered board now tags it with that category, so it stays in view instead of vanishing. ## behavior - `filterCategory()` returns the active filter **only** when it exactly matches a configured category or one already in use. - `modeAdd` applies it when the quick-add has no inline `@category`. - Inline `@category` still wins; a non-category filter (project name, partial, due) leaves the item uncategorized — no mis-tagging. ## tests `TestAddInheritsFilterCategory`: inherit / inline-override / non-category no-op / configured-but-unused. Full suite + golangci-lint clean. Docs: launch-filter section in README updated.
Sign in to join this conversation.
No description provided.