zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.24k stars 2.86k forks source link

Wrap guide #5433

Closed JosephTLyons closed 1 year ago

JosephTLyons commented 2 years ago

I would love to have wrap guide support in Zed. Some things to consider upfront would be the ability to have multiple wrap guides and maybe the ability to set wrap guides per language. I imagine for the settings, there could be a global array of values for wrap guides, then language-specific arrays to override.

jonathanj commented 9 months ago

A bunch of other issues related to vertical rulers and wrap guides lead here, but this ticket was closed last year. The docs site doesn't seem to make any mention of wrap guides, but if you attempt to create a config key in settings.json called wrap_guides autocomplete indicates it exists, and accepts an array of numbers like VS Code.

Might be worth adding to the documentation?

mikayla-maki commented 9 months ago

Ahh, yes, apologies. I should have added a comment explaining it. Yes! Zed has had wrap guides since last summer. As you said, you can use the wrap_guides setting to provide an array of line offsets to add to your editor. If you have soft wrap enabled, there will also be an additional line added (in a brighter color) indicating the soft wrap cutoff width.

xpe commented 8 months ago

Seems like this issue can be closed now?