zed icon indicating copy to clipboard operation
zed copied to clipboard

Rewrap should not collapse entire markdown document

Open cgbur opened this issue 1 year ago • 3 comments

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

cgbur avatar Oct 14 '24 01:10 cgbur

Related:

  • https://github.com/zed-industries/zed/issues/18151

notpeter avatar Oct 14 '24 02:10 notpeter

Also related:

  • #22460

IMO #22460 wouldn't be useful w/o this one though.

AKarbas avatar Jan 27 '25 21:01 AKarbas

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!

github-actions[bot] avatar Jun 04 '25 07:06 github-actions[bot]

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.

smitbarmase avatar Jun 27 '25 07:06 smitbarmase