Closes #41422 This completely broke line numbering as described in the linked issue and scrolling up does not have the correct numbers any more. Release Notes: - NOTE: The `relative_line_numbers` change (https://github.com/zed-industries/zed/pull/39268) was reverted and did not make the release cut!
This commit is contained in:
@@ -2994,33 +2994,11 @@ List of `string` glob patterns
|
||||
|
||||
- Description: Whether to show relative line numbers in the gutter
|
||||
- Setting: `relative_line_numbers`
|
||||
- Default: `"disabled"`
|
||||
- Default: `false`
|
||||
|
||||
**Options**
|
||||
|
||||
1. Show relative line numbers in the gutter whilst counting wrapped lines as one line:
|
||||
|
||||
```json [settings]
|
||||
{
|
||||
"relative_line_numbers": "enabled"
|
||||
}
|
||||
```
|
||||
|
||||
2. Show relative line numbers in the gutter, including wrapped lines in the counting:
|
||||
|
||||
```json [settings]
|
||||
{
|
||||
"relative_line_numbers": "wrapped"
|
||||
}
|
||||
```
|
||||
|
||||
2. Do not use relative line numbers:
|
||||
|
||||
```json [settings]
|
||||
{
|
||||
"relative_line_numbers": "disabled"
|
||||
}
|
||||
```
|
||||
`boolean` values
|
||||
|
||||
## Remove Trailing Whitespace On Save
|
||||
|
||||
|
||||
+2
-2
@@ -606,7 +606,7 @@ Here are a few general Zed settings that can help you fine-tune your Vim experie
|
||||
| Property | Description | Default Value |
|
||||
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
|
||||
| cursor_blink | If `true`, the cursor blinks. | `true` |
|
||||
| relative_line_numbers | If `"enabled"`, line numbers in the left gutter are relative to the cursor. If `"wrapped"`, they also display for wrapped lines. | `"disabled"` |
|
||||
| relative_line_numbers | If `true`, line numbers in the left gutter are relative to the cursor. | `false` |
|
||||
| scrollbar | Object that controls the scrollbar display. Set to `{ "show": "never" }` to hide the scroll bar. | `{ "show": "auto" }` |
|
||||
| scroll_beyond_last_line | If set to `"one_page"`, allows scrolling up to one page beyond the last line. Set to `"off"` to prevent this behavior. | `"one_page"` |
|
||||
| vertical_scroll_margin | The number of lines to keep above or below the cursor when scrolling. Set to `0` to allow the cursor to go up to the edges of the screen vertically. | `3` |
|
||||
@@ -620,7 +620,7 @@ Here's an example of these settings changed:
|
||||
// Disable cursor blink
|
||||
"cursor_blink": false,
|
||||
// Use relative line numbers
|
||||
"relative_line_numbers": "enabled",
|
||||
"relative_line_numbers": true,
|
||||
// Hide the scroll bar
|
||||
"scrollbar": { "show": "never" },
|
||||
// Prevent the buffer from scrolling beyond the last line
|
||||
|
||||
@@ -204,7 +204,7 @@ TBD: Centered layout related settings
|
||||
"folds": true, // Show/hide show fold buttons in the gutter.
|
||||
"min_line_number_digits": 4 // Reserve space for N digit line numbers
|
||||
},
|
||||
"relative_line_numbers": "enabled", // Show relative line numbers in gutter
|
||||
"relative_line_numbers": false, // Show relative line numbers in gutter
|
||||
|
||||
// Indent guides
|
||||
"indent_guides": {
|
||||
|
||||
Reference in New Issue
Block a user