Skip to content

Conversation

@ThinkerPal
Copy link

@ThinkerPal ThinkerPal commented Jul 31, 2025

I've been using Hazel during the 5.x versions and relied quite heavily on the ability to sort files by where they were downloaded from.

This commit adds support for filtering files on macOS by using the kMDItemWhereFroms metadata present in files downloaded.

The testcase is a little scuffed as processing file metadata requires the file to be in a location where Spotlight will reindex, and by default Spotlight does not index /tmp and /private/var/tmp

Also, osxmetadata is currently pinned to 1.3.0 due to some issues with dependencies for 1.4.0

Let me know if there's anything I should edit! :)

Change Summary

  • introduce macos_downloadsource as a filter

Related issue number

Not that I'm aware of

Checklist

  • Tests for the changes exist and pass on CI (well, passed after lints 😅 )
  • Documentation reflects the changes where applicable
  • Change is documented in CHANGELOG.md (if applicable)
  • My PR is ready to review

ThinkerPal and others added 2 commits July 31, 2025 22:17
This commit adds support for filtering files on macOS by using the
`kMDItemWhereFroms` metadata present in files downloaded.

The testcase is a little scuffed as processing file metadata requires
the file to be in a location where Spotlight will reindex, and by
default Spotlight does not index `/tmp` and `/private/var/tmp`

Also, `osxmetadata` is currently pinned to 1.3.0 due to some issues with
dependencies for 1.4.0
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.

1 participant