Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Document `hidden_files` setting (#64403)

Dom Porada19096d4c87ed
diff --git a/docs/src/project-panel.md b/docs/src/project-panel.md
index 20ec2bf257a..bef67181ec6 100644
--- a/docs/src/project-panel.md
+++ b/docs/src/project-panel.md
@@ -162,8 +162,7 @@ See also [Diagnostics & Quick Fixes](./diagnostics.md) for editor and tab diagno
- `project_panel.hide_gitignore` hides files matched by `.gitignore`. Toggle
this with {#action project_panel::ToggleHideGitIgnore}.
-- `project_panel.hide_hidden` hides dotfiles and other hidden entries. Toggle
- with {#action project_panel::ToggleHideHidden}.
+- `project_panel.hide_hidden` hides entries matching [`hidden_files`](./reference/all-settings.md#hidden-files) (dotfiles and dotfolders by default). Toggle with {#action project_panel::ToggleHideHidden}.
### Sorting
diff --git a/docs/src/reference/all-settings.md b/docs/src/reference/all-settings.md
index adf1252c35e..6e298ad0631 100644
--- a/docs/src/reference/all-settings.md
+++ b/docs/src/reference/all-settings.md
@@ -2930,6 +2930,31 @@ Example:
`boolean` values
+## Hidden Files {#hidden-files}
+
+- Description: Glob patterns that mark files and folders as hidden in the Project Panel.
+- Setting: `hidden_files`
+- Default: `["**/.*"]`
+
+**Options**
+
+List of `string` glob patterns.
+
+The default matches files and folders whose names start with a dot. Files inside matching folders are also considered hidden.
+
+The [Project Panel](../project-panel.md#hiding-files) shows hidden entries by default. To hide them, enable **Hide Hidden** under **Panels > Project Panel** in the Settings Editor, or set `project_panel.hide_hidden` to `true`.
+
+Customizing `hidden_files` replaces the default patterns. To hide `*.log` files while keeping dotfiles and dotfolders hidden, add this to your `settings.json`:
+
+```json [settings]
+{
+ "hidden_files": ["**/*.log", "**/.*"],
+ "project_panel": {
+ "hide_hidden": true
+ }
+}
+```
+
## Indent Guides
- Description: Configuration related to indent guides. Indent guides can be configured separately for each language.