tig icon indicating copy to clipboard operation
tig copied to clipboard

Wrap long lines instead of horizontal scrolling

Open djromero opened this issue 15 years ago • 12 comments

In general tig doesn't wrap lines, in any view nor in details. I've looked in the docs and there is no mention to wrapping options. Count 1 vote for wrapping lines in certain views (with a configuration switch)

djromero avatar May 04 '10 12:05 djromero

You are not the first to ask for this feature. Can you provide some more detail as to what views you are mainly interested in responding to such an option?

BTW, you forgot to vote on this issue! ;-)

jonas avatar Jun 08 '10 18:06 jonas

Issued my vote. My main interest: main and log views.

djromero avatar Jun 20 '10 16:06 djromero

log and diff views please it's driving me nuts trying to find the rest of the line

twig avatar Sep 26 '11 04:09 twig

if i could use "less" as pager, i could enter "-S".

maletin avatar Jan 19 '12 08:01 maletin

Can this be closed as we now have set wrap-lines = yes ?

Mpdreamz avatar Nov 10 '15 18:11 Mpdreamz

:+1:

Toggle-able line wrapping in diffs would be great. Having to read raw markdown in a diff by going right, right, right, right, down, leftleftleftleftleftleftleft, right... is painful.

dwijnand avatar Dec 31 '15 08:12 dwijnand

@dwijnand :toggle wrap-lines would do it (and can be mapped).

However, wrap-lines does not apply to the subject in commit views, needs a reload after toggling it, and does not apply to the main view window (commit list subjects).

blueyed avatar Jul 24 '18 07:07 blueyed

When starting tig with the --word-diff option, lines stop wrapping even though the option is set in .tigrc file.

xapple avatar Nov 06 '20 12:11 xapple

Can this be closed as we now have set wrap-lines = yes ?

This option is not perfect, I found that the option is not working in diff mode(in log mode, Enter on a commit, check the long commit message of the commit, it is not wrapped.)

c02y avatar May 04 '21 20:05 c02y

wrap-lines does wrap the long commit message for me.

tig version 2.5.8
ncursesw version 6.4.20221231
readline version 8.2
PCRE2 version 10.42 2022-12-11

charlax avatar Jul 12 '23 15:07 charlax

tig status is such a gift to me -- thank you!

I often use it for writing projects (and coding too, though that's less relevant here) in which a "paragraph" is a single long line (in a markdown text file). Having to scroll horizontally makes this view very challenging.

--word-diff is awesome, generally, but without this option, tig status is much less useful to a writing project.

With tig status --word-diff the :toggle wrap-lines does not work (nothing happens).

tig -v
tig version 2.5.8
ncursesw version 6.3.20211021

m-faith avatar Oct 16 '23 10:10 m-faith