tig
tig copied to clipboard
Wrap long lines instead of horizontal scrolling
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)
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! ;-)
Issued my vote. My main interest: main and log views.
log and diff views please it's driving me nuts trying to find the rest of the line
if i could use "less" as pager, i could enter "-S".
Can this be closed as we now have set wrap-lines = yes ?
:+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
: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).
When starting tig with the --word-diff option, lines stop wrapping even though the option is set in .tigrc file.
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.)
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
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