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 new `git_panel` settings in all-settings reference (#64282)

Ashraf Hossain55a43c22fd78
diff --git a/docs/src/reference/all-settings.md b/docs/src/reference/all-settings.md
index cf70ae1c14a..86c72930915 100644
--- a/docs/src/reference/all-settings.md
+++ b/docs/src/reference/all-settings.md
@@ -5924,7 +5924,7 @@ Visit [AI Quick Start](../ai/quick-start.md) under the AI section to learn more
{
"collaboration_panel": {
"button": true,
- "dock": "left",
+ "dock": "right",
"default_width": 240
}
}
@@ -5965,17 +5965,24 @@ See the [debugger page](../debugger.md) for more information about debugging sup
{
"git_panel": {
"button": true,
- "dock": "left",
+ "dock": "right",
"default_width": 360,
"status_style": "icon",
+ "file_icons": false,
+ "folder_indicator": "icon",
"fallback_branch_name": "main",
"sort_by": "path",
"group_by": "status",
"collapse_untracked_diff": false,
+ "tree_view": false,
"scrollbar": {
"show": null
},
- "starts_open": false
+ "starts_open": false,
+ "show_count_badge": false,
+ "diff_stats": true,
+ "commit_title_max_length": 0,
+ "entry_primary_click_action": "project_diff"
}
}
```
@@ -5986,12 +5993,19 @@ See the [debugger page](../debugger.md) for more information about debugging sup
- `dock`: Where to dock the git panel. Can be `left` or `right`
- `default_width`: Default width of the git panel
- `status_style`: How to display git status. Can be `label_color` or `icon`
+- `file_icons`: Whether to show file icons in the git panel
+- `folder_indicator`: What to show for directories in the git panel. Can be `icon`, `chevron`, or `both`
- `fallback_branch_name`: What branch name to use if `init.defaultBranch` is not set
- `sort_by`: How to sort entries in the git panel. Can be `path` or `name`
- `group_by`: How to group entries in the git panel. Can be `none` or `status`
- `collapse_untracked_diff`: Whether to collapse untracked files in the diff panel
+- `tree_view`: Whether to show entries in tree or flat view in the panel
- `scrollbar`: When to show the scrollbar in the git panel
- `starts_open`: Whether the git panel should open on startup
+- `show_count_badge`: Whether to show a badge on the git panel icon with the count of uncommitted changes
+- `diff_stats`: Whether to show the addition/deletion change count next to each file in the git panel
+- `commit_title_max_length`: Maximum length of the commit message title before a warning is shown. Set to `0` to disable
+- `entry_primary_click_action`: Default action when clicking a changed file in the git panel. Can be `project_diff`, `file_diff`, or `view_file`
## Git Worktree Directory
@@ -6049,7 +6063,7 @@ You can define these in user or project settings; project settings are merged on
## Outline Panel
-- Description: Customize outline Panel
+- Description: Customize outline panel
- Setting: `outline_panel`
- Default:
@@ -6058,7 +6072,7 @@ You can define these in user or project settings; project settings are merged on
"outline_panel": {
"button": true,
"default_width": 300,
- "dock": "left",
+ "dock": "right",
"file_icons": true,
"folder_indicator": "icon",
"git_status": true,