-
Notifications
You must be signed in to change notification settings - Fork 196
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
Automatically break line at the configured right margin column #297
Comments
Seems like this was implemented by PR #313 |
What was implemented is a soft break, not a hard break (the resulting file still contains long lines). I think it is not what @htmfilho requested. |
Indeed @mitya57 . The idea is to have a better readability outside of an markdown editor. So the editor would automatically break lines everytime it reaches the right margin. Is this a desirable feature in retext? I would love to contribute with it. |
Yes, a pull request will be welcome! |
Just to note, some lines cannot be broken, for example imagine a nested list containing a long URL. Some way to indicate lines that should be preserved would be welcome (or treat URLs as unbreakable words). |
I would highly appreciate such a feature, too. In fact it would already be nice to have the option to reflow selected text only on demand, e.g. using Ctrl-J like in geany, rather than fully automatically. |
Good to know it's useful! Thanks for your feedback. I'm writing about the subject to make sure it is designed the best way possible. I hope @mitya57 is patient with me because of the time it is taking to move forward with this issue that I proposed to contribute. :-) |
For better readability outside of a markdown editor, it's a good practice to break lines before it crosses the right margin column, which we can define in the preferences window.
It would be great to have a new checkbox, close to the "Display right margin at column" field, to enable the automatic line break.
The text was updated successfully, but these errors were encountered: