-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange editor area when showing plain text content #12473
Comments
Looks more like you have wrap guides disabled for JavaScript and for Plain Text you get a wrap guide at 80 columns or so? |
Here is my settings, I didn't change the properties related to line wrapping {
"theme": "One Dark",
"buffer_font_family": "MesloLGS Nerd Font Mono",
"auto_update": false,
"base_keymap": "VSCode",
"telemetry": {
"metrics": false,
"diagnostics": false
},
"ui_font_size": 16,
"buffer_font_size": 16
} |
Hm, looks like there indeed should not be any wrap guides by default. From the default settings: // Whether to show wrap guides in the editor. Setting this to true will
// show a guide at the 'preferred_line_length' value if 'soft_wrap' is set to
// 'preferred_line_length', and will show any additional guides as specified
// by the 'wrap_guides' setting.
"show_wrap_guides": true,
// Character counts at which to show wrap guides in the editor.
"wrap_guides": [],
// How to soft-wrap long lines of text. This setting can take
// three values:
//
// 1. Do not soft wrap.
// "soft_wrap": "none",
// 2. Prefer a single line generally, unless an overly long line is encountered.
// "soft_wrap": "prefer_line",
// 3. Soft wrap lines that overflow the editor:
// "soft_wrap": "editor_width",
// 4. Soft wrap lines at the preferred line length
// "soft_wrap": "preferred_line_length",
"soft_wrap": "prefer_line",
// The column at which to soft-wrap lines, for buffers where soft-wrap
// is enabled.
"preferred_line_length": 80, No language overrides for Plain Text either... |
Ah right, I vaguely remember that there is an implicit wrap guide drawn at |
This is fixed in dev. Plain Text buffers (the default for untitled buffers) now default to soft wrapping at the window width and not at This fix is available in dev today, in the next version of Zed Preview on Wednesday (2024-07-17) and in Zed Stable a week later (2024-07-24). Thanks for reporting! |
- Remove wrap guide / vertical ruler in untitled buffers - Fixes #12473
Check for existing issues
Describe the bug / provide steps to reproduce it
When using
plain text
, a blank area appears in the editor.When using
JavaScript
, the blank area disappears.Environment
Zed: v0.137.3
OS: macOS 13.6.7 arm64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: