Repository navigation
Search Files: treat UF_HIDDEN (chflags hidden) as hidden, like a leading dot #2018
Unanswered
a-glapinski
asked this question in
Feature Requests, Ideas
Replies: 1 comment 1 reply
|
@a-glapinski i am not clear at all. use human language. what issue are you facing? and what issue it solves. whats the issue with current implementation? note: ai reply will earn you a permanent block |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What should it do?
Search Files should treat an item with the BSD UF_HIDDEN flag (
chflags hidden <path>, what Finder honours) the same as a name starting with a dot: skipped unless Include hidden files is on, and ranked like a dot path when it is.Today only the leading dot counts.
FileIndexCrawler.appendchecksname.pointee == 0x2E, and thegetattrlistbulkrequest doesn't ask forATTR_CMN_FLAGS, so a folder hidden withchflags hiddenis indexed at prior 2 and its files show up in results and Recent.Asking
getattrlistbulkforATTR_CMN_FLAGSadds 4 bytes per entry and no extra syscall. Every listing (rebuild, live diff, walk of a new folder) goes throughappend, so they would all stay consistent.Tradeoff:
~/Libraryhas UF_HIDDEN, so with the setting off it would leave the index. It is already prior 0 and largely covered by default ignore patterns.Why does it belong in Tinycast?
chflags hiddenis the standard macOS way to hide a folder without renaming it, which a dot would break for the apps that use the folder. Finder respects the flag, so these folders are already out of sight everywhere else; Search Files is the one place they surface. Adding each one as an ignore pattern works, but it is a second list to keep in sync with the filesystem, and an ignore pattern also drops the folder when Include hidden files is on.I confirm that:
All reactions