martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

Disabling line wrapping #1092

Closed youngnix closed 8 months ago

youngnix commented 1 year ago

Is it possible to disable line wrapping somehow? I've read the wiki and man pages but couldn't find much about this specifically. If not possible, consider this a feature request.

mcepl commented 1 year ago

You mean something like less -S?

youngnix commented 1 year ago

Yes, but maybe more interactive. Maybe just allowing the user to toggle between truncating and wrapping lines on demand would suffice.

rnpnr commented 1 year ago

I was under the impression that that was intentionally a non-feature. It adds a lot of code-complexity to have to maintain a horizontally scrolling viewport. Even just truncating the line seems like it will have a lot of unintended consequences to work around.

If someone is interested in looking into it the section of code that wraps the line is at view.c#L239

mcepl commented 1 year ago

+1 to @rnpnr arguments, I would vote for WONTFIX here.