Repository navigation
Conversation
On macOS the tag list is now Finder's favourite tags, and a tag is identified by its name as Finder does. Creating, renaming, reordering and deleting tags in the app update Finder's favourites. Colours come from Finder: a colour found on a tagged file, else the standard colour of a standard tag name in any language (Red, 红色, ...). They are read in the background. Tags written onto files use the same colours. Linux keeps the existing tag settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On macOS, Finder owns tags: the sidebar, Open dialogs and other apps all show Finder's tags. This makes Files follow Finder instead of keeping its own list. Linux keeps the existing JSON-backed
FileTagsSettingsServiceunchanged.Changes
MacOSFileTagsSettingsService(registered asIFileTagsSettingsServiceunderDESKTOP_MACOSonly):FavoriteTagNamesincom.apple.finder). A tag is identified by its name, as in Finder (uidfinder:<name>).NSUserDefaults/cfprefsd. An unreadable preference is left alone.GetTagById/GetTagsByName), so they are not dropped from files.mdfind, no shell, 5 s limit enforced by killing the process).TG_COLOR_1..7in FinderKit'sLocalizableMerged.loctable).MacOSFileTagsStore: tags written onto files use the same colours. A localized standard name such as 红色 now gets its colour; before, only English names did. A colour chosen in the app replaces the colour a file carries.FileTagsHelper:UntagAllFilesAsyncnow goes through a newReplaceTagOnAllFilesAsync, which is also used to rename or recolour a tag on known files. Linux behaviour is unchanged.Validation
dotnet build src/Files.App -f net10.0-desktopfor macOS and with-p:FilesDesktopOS=Linux: both succeeded.dotnet test --project tests/Files.Platform.Tests/Files.Platform.Tests.csproj --filter "FullyQualifiedName~Tags": 61 passed, 8 skipped (Linux-only xattr tests). The newMacOSFinderTagsTestscover colour parsing, colour codes, the FinderKit name table, merging favourites, chosen-colour precedence and query escaping.Limitations
🤖 Generated with Claude Code