Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Exclude duplicated folders in macOS #4190

Open
3 of 10 tasks
flanter21 opened this issue Jan 19, 2025 · 0 comments
Open
3 of 10 tasks

[Feature request] Exclude duplicated folders in macOS #4190

flanter21 opened this issue Jan 19, 2025 · 0 comments

Comments

@flanter21
Copy link

flanter21 commented Jan 19, 2025

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.57.0 (brew)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

macOS binds what is essentially the root directory* to several points via both mounting and symlinks. This means, by default, it is not possible to avoid searching the same folders at least twice if you do it in the root directory. For example, searching for "Macintosh HD" leads to both /Volumes/Macintosh HD and /System/Volumes/Data/Volumes/Macintosh HD

This is rather unintuitive and I suggest the default configuration on Mac being changed to avoid this problem, or an option to exclude a folder being searched more generally.

*The only difference it that the symlinked root has a bin folder that is not present in any of the mounted ones and the mounted one has a MobileSoftwareUpdate folder not found in the symlinked one.

Root directory examples
Symlinks

  • /
  • /Volumes/Macintosh HD
  • /Volumes/Macintosh HD/Volumes/Macintosh HD

Mount

  • /System/Volumes/Data

Both

  • /Volumes/Macintosh HD/System/Volumes/Data
  • /System/Volumes/Data/Volumes/Macintosh HD
  • /System/Volumes/Data/Volumes/Macintosh HD/System/Volumes/Data
    etc

Edit

Also a similar problem can be obtained as the /System/Volumes/Data folder may be linked into certain apps working sandboxes. eg. searching for "file" in my downloads folder led to

/Users/pc/Library/Containers/com.utmapp.UTM/Data/Downloads/file
/Users/pc/Library/Containers/com.utmapp.UTM/Data/Downloads/file
/Users/pc/Library/Containers/com.apple.podcasts/Data/Downloads/file
/Users/pc/Library/Containers/com.apple.FaceTime/Data/Downloads/file
x100

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

No branches or pull requests

1 participant