Skip to content

[Feature] Add search/filter by size and date for cache items #18

Closed

Description

@nguyenhuy158

What would you like?
Add the ability to search and filter cache items by:

  • File size (e.g. >100MB, <10MB)
  • Date (e.g. last modified, older than X days)

Why is this useful?
Users often want to clean large or old cache files quickly. Currently, it's hard to find them manually in long lists.

Use cases

  • Delete very large cache files first
  • Remove old unused cache (e.g. >30 days)
  • Combine filters (e.g. large AND old)

Proposed solution

  • Add filter options:
    • Size: min/max or presets (Small / Medium / Large)
    • Date: last modified / created (Today, 7 days, 30 days, custom)
  • Add sorting by size and date
  • Optional: search bar + advanced filters

Alternatives considered
Manual scrolling is slow and inefficient when there are many items.

Activity

  1. momenbasel commented on Apr 14, 2026

    @momenbasel
    Owner

    Good request. Note that PR #14 (just merged) adds a size sort toggle to the category detail view — so sorting by size is now available.

    Remaining from this request:

    • Date sorting — sort by lastModified
    • Size filter presets (>100MB, >500MB, >1GB)
    • Age filter (older than 7d / 30d / 90d / 1yr)
    • Search bar for filtering by filename

    The sort toggle from #14 is a good foundation to extend. PRs welcome for any of the above.

  2. momenbasel commented on Apr 14, 2026

    @momenbasel
    Owner

    Great suggestion @nguyenhuy158! The use cases you listed (large + old combined filters) are exactly what power users need. Thanks for taking the time to write this up so clearly.

  3. momenbasel commented on Apr 14, 2026

    @momenbasel
    Owner

    Hey @nguyenhuy158! v2.0 added search filtering to all category views - there's a .searchable() bar at the top that filters files by name or path.

    From your original request:

    • Search bar: Done
    • Sort by size: Done (toggle in toolbar)
    • Sort by date/name: Not yet
    • Size filter presets (>100MB, >500MB): Not yet
    • Age filter (>7d, >30d): Not yet

    Opening a new issue to track the remaining filter presets. Thanks for the great feature request!

  4. momenbasel commented on Apr 14, 2026

    @momenbasel
    Owner

    Hey @nguyenhuy158! Just wanted to let you know - you're credited in the v2.0 README under the Acknowledgments section for your search/filter feature request and PR. Your ideas directly shaped the category view search we built. Thanks for being part of PureMac! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions