Filter the items of a state command by tags and due range #331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "328_filter-tasks-by-tags-and-due"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #328.
What changes
Core
Due { Now, Days(n), Any }says how far ahead items are listed.Days(n)reaches the end of the day today + n in the project's timezone (throughstart_of_day, so a clock change is handled). It parses fromnow/<N>d/any.Filter::any_of: OR alternatives, alias-aware.Filter::shows(item, due, now, tz)replaces theshow_futureflag.api::state_boardtakes the OR values and aDue.state_itemsandpartition_valuestake aDue.dueas a flag name, so apartitioned_bydimension cannot be calleddue.CLI / TUI
streamd <key> --due <now|Nd|any>.--show-futurestays as a short form of--due anyand conflicts with--due. A wrong value is a usage error.streamd <key> -i,fcycles now → 7 days → any → now. The tab line says· due within 7 daysor· with future items.Bindings
Dueenum.stateItems,stateBoard(with any-of placements) andpartitionValuestake it.App
TaskFilterSheet) with:StateLists.preview, which reads no file,today/tomorrow/in N days.TaskFilterSaver).Tests
Days(7)at its limits across the Berlin DST change, and parsing.any_ofshows the union, and an alias stands for its tag.--dueparsing, the conflict with--show-future, and thefcycle in model, view and front-end.Days(7)reaches a future item;StoreTest.ktupdated.TaskFilterTest(top five, default, chip row, tap, search rows, keeping, due hint, saver).StreamSessionTestfor OR + due + preview.nix flake checkandnix build .#streamd-apppass.Notes
rememberModalBottomSheetStateis deprecated in this Material version; it is used the same way asActivityRange.ktalready does.de3e158b42777c782327