Skip to content

Commit 7034169

Browse files
committed
Add documentation
1 parent 4945481 commit 7034169

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

assets/settings/default.json

+2
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@
559559
"close_position": "right",
560560
// Whether to show the file icon for a tab.
561561
"file_icons": false,
562+
// Whether to always show the close button on tabs.
563+
"always_show_close_button": false,
562564
// What to do after closing the current tab.
563565
//
564566
// 1. Activate the tab that was open previously (default)

docs/src/configuring-zed.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ List of `string` values
634634
"close_position": "right",
635635
"file_icons": false,
636636
"git_status": false,
637-
"activate_on_close": "history"
637+
"activate_on_close": "history",
638+
"always_show_close_button": false
638639
},
639640
```
640641

@@ -698,6 +699,20 @@ List of `string` values
698699
}
699700
```
700701

702+
### Always show the close button
703+
704+
- Description: Whether to always show the close button on tabs.
705+
- Setting: `always_show_close_button`
706+
- Default: `false`
707+
708+
2. Activate the neighbour tab (prefers the right one, if present):
709+
710+
```json
711+
{
712+
"activate_on_close": "neighbour"
713+
}
714+
```
715+
701716
## Editor Toolbar
702717

703718
- Description: Whether or not to show various elements in the editor toolbar.

0 commit comments

Comments
 (0)