Skip to content
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

fill-paragraph #21459

Closed
1 task done
hillegass opened this issue Dec 3, 2024 · 4 comments
Closed
1 task done

fill-paragraph #21459

hillegass opened this issue Dec 3, 2024 · 4 comments
Labels
editor Feedback for code editing, formatting, editor iterations, etc feature [core label]

Comments

@hillegass
Copy link
Contributor

Check for existing issues

  • Completed

Describe the feature

I write a lot of latex and markdown. These ignore whitespace, but in consideration to other authors who will edit the file, it is considered polite to keep the number of columns down to what can be seen on a screen. On emacs, I use ESC-q (AKA fill-paragraph), which creates/deletes linebreaks and places the cursor at the end of the paragraph.. Could you include a similar functionality in Zed?

Environment

Zed: v0.163.3 (Zed)
OS: macOS 15.1.1
Memory: 36 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@hillegass
Copy link
Contributor Author

For reference here is the elisp file. Look for "defun fill-paragraph".
fill.txt

@JosephTLyons
Copy link
Collaborator

Hey @hillegass - I'm not too familiar with Emacs - is this similar to editor: rewrap? Rewrap tries to rewrap all the text to fit into your preferred line length, however, it doesn't move your cursor to the end.

@JosephTLyons JosephTLyons added editor Feedback for code editing, formatting, editor iterations, etc and removed triage labels Dec 3, 2024
@hillegass
Copy link
Contributor Author

Ah, that's it! (I couldn't find it in the documentation. Is it in there?) Thank you, and I'm sorry for the hassle.

@JosephTLyons
Copy link
Collaborator

Ah, that's it! (I couldn't find it in the documentation. Is it in there?) Thank you, and I'm sorry for the hassle.

Absolutely no issue whatsoever. Always happy to help, where I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Feedback for code editing, formatting, editor iterations, etc feature [core label]
Projects
None yet
Development

No branches or pull requests

2 participants