louisdh / textor

A plain text editor for iOS
MIT License
585 stars 113 forks source link

Setting to toggle line wrap #18

Closed metbril closed 6 years ago

metbril commented 6 years ago

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.

aamct2 commented 6 years ago

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.

louisdh commented 6 years ago

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!

metbril commented 6 years ago

Too bad, but I understand your reasoning.