zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.45k stars 3.12k forks source link

Separate `file_scan_exclusions` into distinct options for scan, search and tree exlusions #21018

Open PHLAK opened 12 hours ago

PHLAK commented 12 hours ago

Check for existing issues

Describe the feature

Currently, entries in the file_scan_exclusions option prevent files from being scanned and files from being searched and prevents files from showing the project file tree.

  • Setting: file_scan_exclusions
  • Description: Configure how Add filename or directory globs that will be excluded by Zed entirely. They will be skipped during file scans, file searches and hidden from project file tree.

I would like finer grained control of these options so I can, for example, exclude files from scanning and search but not exclude them from the file tree.

For a concrete example, I have a project that generates coverage reports to a .coverage directory. There is no reason for files in this folder to be scanned and I don't need them to be searchable either, however, I do want to be able to access them from the file tree.

Environment

N/A

If applicable, add mockups / screenshots to help present your vision of the feature

Desired options: