Would prefer non-word-boundary line breaks in URLs
CompletedWhen a URL exceeds line-length, nvUltra applies line-breaking on word boundaries. The remaining part on the first line (before the break) is then full-adjusted by letter-spacing it. See example in attachment.
I hit this a fair bit and would prefer that URLs simply break where the line end is, not on word boundaries, to avoid this distracting formatting.

-
From what I can tell, I think this is either set for the entire window, or possibly on a per-paragraph basis. But I don't *think* it can be set for certain parts of paragraphs. I'm not sure that this would be any better.
If anyone else knows a way to do this differently in NSTextView's, I am open to hearing about it!
0 -
I kept digging, and I think I found a way to do it without a significant performance hit with a custom NSTypeSetter. I need to test it a bit more, but maybe it can be done!
0 -
And to clarify, this will work when a URL is recognized as such by the syntax highlighter (e.g. `<foo>`), or with WikiLinks. Basically anything that is clickable in the editor.
0
Please sign in to leave a comment.
Comments
3 comments