Skip to content

Commit

Permalink
docs: Terminal line_height (#16687)
Browse files Browse the repository at this point in the history
Closes #16686

Release Notes:

- N/A
  • Loading branch information
notpeter authored Aug 22, 2024
1 parent c697eab commit 4e2b08b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ enable = false
"/ruby.html" = "/docs/languages/ruby.html"
"/python.html" = "/docs/languages/python.html"
"/adding-new-languages.html" = "/docs/extensions/languages.html"
"/language-model-integration.html" = "/docs/assistant/assistant.html"
41 changes: 41 additions & 0 deletions docs/src/configuring-zed.md
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,7 @@ List of `integer` column numbers
"font_family": null,
"font_features": null,
"font_size": null,
"line_height": "comfortable",
"option_as_meta": true,
"button": false,
"shell": {},
Expand Down Expand Up @@ -1447,6 +1448,46 @@ See Buffer Font Features
}
```

### Terminal: Line Height

- Description: Set the terminal's line height.
- Setting: `line_height`
- Default: `comfortable`

**Options**

1. Use a line height that's `comfortable` for reading, 1.618. (default)

```jsonc
{
"terminal": {
"line_height": "comfortable",
},
}
```

2. Use a `standard` line height, 1.3. This option is useful for TUIs, particularly if they use box characters

```jsonc
{
"terminal": {
"line_height": "standard",
},
}
```

3. Use a custom line height.

```jsonc
{
"terminal": {
"line_height": {
"custom": 2,
},
},
}
```

### Terminal: Option As Meta

- Description: Re-interprets the option keys to act like a 'meta' key, like in Emacs.
Expand Down

0 comments on commit 4e2b08b

Please sign in to comment.