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

Consider markdown lists and code #26

Open
ghost opened this issue Nov 24, 2013 · 6 comments
Open

Consider markdown lists and code #26

ghost opened this issue Nov 24, 2013 · 6 comments

Comments

@ghost
Copy link

ghost commented Nov 24, 2013

Your plugin works great for text, I need it for markdown though so it is very nice that lists are considered but unfortunately links and code blocks are not. Links are broken in the middle of the URL and code blocks shouldn't be touched. Regards.

@ehuss
Copy link
Owner

ehuss commented Nov 24, 2013

Can you give an example of a link that will not wrap properly?

@ghost
Copy link
Author

ghost commented Nov 24, 2013

Yes.

*For visual illustration along these docs check the [screenshots](https://github.com/Perennials/private-project/tree/master/screenshots) in the `screenshots` folder.*

@ehuss
Copy link
Owner

ehuss commented Nov 24, 2013

Hm, I'm not having a problem with that. At 80 columns I get:

*For visual illustration along these docs check the
[screenshots](https://github.com/Perennials/private-project/tree/master/screenshots)
in the `screenshots` folder.*

where the last 4 characters ("ots)") extend past the 80th column. Do you have Sublime's visual word-wrap mode (View->Word Wrap) turned on? That will cause problems, but hard newlines are not inserted by it (see by selecting the text).

@ghost
Copy link
Author

ghost commented Nov 24, 2013

Before Alt+Q:
before-alt-q

After Alt+Q:
after-alt-q

Could it be the case the you are using newer version than the one in Package Control?

@ehuss
Copy link
Owner

ehuss commented Nov 24, 2013

Oh, I'm sorry, I should have picked up on that. Add these to your preferences file:

"WrapPlus.break_long_words": false,
"WrapPlus.break_on_hyphens": false,

It doesn't do any semantic parsing, so that's the best we have for now.

@ghost
Copy link
Author

ghost commented Nov 24, 2013

Great, thanks.

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

1 participant