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

Automatically break line at the configured right margin column #297

Open
htmfilho opened this issue Jul 12, 2017 · 7 comments
Open

Automatically break line at the configured right margin column #297

htmfilho opened this issue Jul 12, 2017 · 7 comments

Comments

@htmfilho
Copy link

htmfilho commented Jul 12, 2017

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.

image

It would be great to have a new checkbox, close to the "Display right margin at column" field, to enable the automatic line break.

@xgouchet
Copy link
Member

Seems like this was implemented by PR #313

@mitya57
Copy link
Member

mitya57 commented Sep 13, 2017

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.

@htmfilho
Copy link
Author

htmfilho commented Oct 2, 2017

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.

@mitya57
Copy link
Member

mitya57 commented Oct 3, 2017

Yes, a pull request will be welcome!

@lofidevops
Copy link

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).

@jsaul
Copy link

jsaul commented Feb 12, 2018

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.

@htmfilho
Copy link
Author

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. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants