louisdh/textor

Setting to toggle line wrap

Closed this issue · 3 comments

Currently the editor automatically wraps long lines.
I sometimes use it as a code editor. In those cases I would like to toggle wrap off.
Could you add this as an extra setting? Nothing fancy, just on/off.

I suspect this is actually going to be a bigger change than one might anticipate. UITextView, which is what is being used, doesn't have a way to turn off word wrapping built-in. You'd likely have to drop down into the Core Text functionality that underlies it and need to manually manage the layout. Or we'd have to find a dependency that offers us this functionality.

I understand the need for this feature, but feel that it's out of scope for Textor.
Textor's goal is not be a code editor (although you could of course use it for that).
I'm gonna close this issue.

Thanks for the suggestion!

Too bad, but I understand your reasoning.