Skip to content

Conversation

@olegnet
Copy link

@olegnet olegnet commented Oct 5, 2025

Add support for macOS color tags on macOS and other systems.

A tag is represented as a string containing:

  • A tag name (predefined or user-defined).
  • Optionally, a color code after a \n.

See also https://eclecticlight.co/2024/12/24/solving-finder-tag-problems

On macOS, the extended attribute name for tags is consistent with Finder

  • com.apple.metadata:_kMDItemUserTags

On other systems, the extended attribute name for macOS tags may vary
depending on the copy method (e.g. Samba, rsync)

  • user.DosStream.com.apple.metadata:_kMDItemUserTags:$DATA
  • user.com.apple.metadata:_kMDItemUserTags

Tests

Code example olegnet@057c1fa

Problem description https://github.com/orgs/eza-community/discussions/1639

Screenshot

c

@olegnet olegnet changed the title feat: added support for macOS color tags on macOS and other systems feat: add support for macOS color tags on macOS and other systems Oct 5, 2025
@olegnet olegnet force-pushed the macos-tags branch 4 times, most recently from c593d69 to e5ce7fc Compare October 8, 2025 06:35
Copy link
Contributor

@MartinFillon MartinFillon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for your contribution, this looks good to me. If you know a way to test it with our current testing, please add it otherwise this is great

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