Skip to content

Find in Project does not find matches in .gitignored files #46764

Description

@chrs-b

Reproduction steps

  1. Open a gitignored file and select a word in it (for instance by double clicking a word)
  2. Open "Find in Project" (Cmd-Shift-F or Edit > ) and start search
  3. Results will not include matches in the gitignored file

The related setting "Search & Files > Include Ignored in Search" does not seem to have any effect. Matches not found regardless of how this setting is configured.

Current vs. Expected behavior

Image Image

It would be great to be able to include gitignored files in "Find in Project", however, some languages create local dirs (like Rust /target), which usually should be excluded.

I often work with excluded files (e.g. containing sensitive data or temporary files) that I would like to have included in "Find in Project".

Maybe an optional separate "do not ignore file" could be used for "Find in Project"?

Zed version and system specs

Zed: v0.218.7+stable.118.41bab92dac34777ae4256e5041f7b7236fd16cdd (Zed)
OS: macOS 26.2
Memory: 128 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Nothing relevant in logs

Relevant Zed settings

settings.json
{
  "file_finder": {
    "include_ignored": "all"
  },
...
}

Relevant Keymap

keymap.json
...
      "cmd-shift-f": "pane::DeploySearch",
...

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:file finderFeedback for file management, navigation, etcarea:integrations/gitGit integration feedbackreach:many usersBugs that happen for at least a third of the users across all platforms and kinds of usageseverity:S2Average run-of-the-mill bugs; a feature is broken but only partiallystate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions