Currently, filters in Vikunja return a flat list of tasks. For more complex use cases (e.g. daily planning or dashboards), this becomes limiting because there is no way to structure results into logical groups.
I would like to propose extending the filter syntax to support sections (grouped result blocks).
Proposal
Introduce a way to define multiple filter blocks, each with a title.
Each block would be evaluated independently and rendered as its own section.
Preferred syntax:
section("Title", "filter expression")
Multiple sections would be comma-separated.
Example
section("New Tasks", "labels = inbox"),
section("Overdue Tasks", "due_date < now"),
section("Today", "project = work && due_date = today"),
section("Next Tasks", "project = work && labels = next")
Alternative (lighter syntax)
If a function-based approach is not desired, a simpler notation could also work:
New Tasks: labels = inbox,
Overdue Tasks: due_date < now
Expected Behaviour
-
Each section is rendered with its title
-
Sections are evaluated independently
-
Order is preserved
-
Tasks may appear in multiple sections (depending on implementation choice)
Why this would help
-
Enables dashboard-like views with a single filter
-
Reduces the need for multiple saved filters
-
Improves daily workflow (inbox, overdue, today, next, etc.)
-
Familiar concept for users coming from tools like Todoist

