Skip to content

Add search and cycle filters (/ / f / F)#6

Merged
alexesba merged 3 commits into
mainfrom
feature/search-filter
Jun 10, 2026
Merged

Add search and cycle filters (/ / f / F)#6
alexesba merged 3 commits into
mainfrom
feature/search-filter

Conversation

@alexesba

@alexesba alexesba commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

Adds composable search and filter controls in the pad so you can narrow
the list without leaving Vim-style keybindings.

  • / — prompt for a case-insensitive text search (blank input clears)
  • f — cycle done filter: all → pending → done → all
  • F — cycle priority filter: all → high → medium → low → all
  • T — today/overdue filter (unchanged; composes with the above)

Active filters appear in the window title, e.g. PinPad (today, pending, "fix").
Filters reset when the pad closes.

Changes

  • sort.lua: PinPadViewFilter state (today, query, done, priority);
    passes_filter, cycle_done, cycle_priority, filter_title_suffix
  • ui.lua: unified filter state; updated empty-state hint
  • actions.lua / config.lua: /, f, F mappings
  • Tests: extended sort_spec.lua (+7 tests)
  • Docs: README + SPEC

Test plan

  • make test green (52 passed)
  • Manual: / + text — only matching tasks remain; title shows "query"
  • Manual: f cycles pending/done; F cycles priority
  • Manual: combine T + / + f — filters stack correctly
  • Manual: close pad — filters reset on reopen

alexesbafh and others added 3 commits June 9, 2026 19:25
PinPadViewFilter combines today, text query, done state, and priority.
Adds cycle helpers, filter_active, and title suffix builder. Tests
cover all filter dimensions and cycle order.

Co-authored-by: Cursor <cursoragent@cursor.com>
/ prompts for a case-insensitive text filter; f cycles all/pending/done;
F cycles all/high/medium/low. Composable with T (today). Title and empty
state reflect active filters; reset on close.

Co-authored-by: Cursor <cursoragent@cursor.com>
README features, config, mappings; SPEC filter model and key table.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexesba alexesba force-pushed the feature/search-filter branch from be6da3c to cb770cc Compare June 10, 2026 01:26
@alexesba alexesba merged commit b8f4c21 into main Jun 10, 2026
4 checks passed
@alexesba alexesba deleted the feature/search-filter branch June 10, 2026 01:28
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.

2 participants