zed
zed copied to clipboard
Rewrap should not collapse entire markdown document
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
When working on larger documents, its common using the vscode plugin to select the entire document, and choose to wrap at a given column, or 0 to undo wrapping. Pasting in some applications requires no hard wraps.
When you select everything and choose rewrap, the entire markdown document and all the paragraphs and headers are collapsed into one.
Environment
Zed: v0.156.1 (Zed)
OS: macOS 15.0.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
before:
# Example
Some paragraph
another one
1. one
2. two
after (select all and press rewrap)
# Example Some paragraph another one 1. one 2. two
It should maintain paragraph breaks in markdown.
If applicable, attach your Zed.log file to this issue.
Zed.log
Related:
- https://github.com/zed-industries/zed/issues/18151
Also related:
- #22460
IMO #22460 wouldn't be useful w/o this one though.
Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!
Rewrap to respect paragraphs is fixed by https://github.com/zed-industries/zed/pull/32046. To track rewrap to respect list in Markdown, please follow https://github.com/zed-industries/zed/issues/18151. Closing this as resolved.