Skip to content

Fuzzy finder: skip hidden files in non-git walks (home-dir roots fill the 200k cap) #48

Description

@osamahbeig

The situation

I often open spiceedit at $HOME and drill down from there. Home is not a git repo, so the finder takes the filepath.Walk path. On a Mac that walk hits Library and every dot dir first, fills the 200,000-entry cap with files nobody ever searches for, and the projects I actually care about never make it into the index, so Esc p cannot find them. The docs call the cap "practically never an issue", which is fair for repos, but a home-dir root blows past it easily.

Workaround that already works

The walker honors .gitignore files, so a ~/.gitignore listing Library/, media dirs and .* fixes it completely. Nice design, but it took source-diving to discover, and a stray ~/.gitignore in a non-repo is a surprising thing to maintain.

Suggestion

In the non-git walk, skip hidden files and directories by default (the fd and ripgrep convention). It keeps the no-config stance: hidden files are almost never what Esc p is for, and the git path already excludes untracked junk for repos. A toggle in the finder would be a bonus, but the default change alone covers the real cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions