altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.83k stars 94 forks source link

Text wrap git diff #277

Open musjj opened 5 days ago

musjj commented 5 days ago

When viewing diffs with long lines (e.g. Tailwind styles), the line is truncated by gitu making them unhelpful. An option to make the lines wrap would be really useful.

image

altsem commented 5 days ago

In my opinion, some kind of text-wrap should be default. The current solution to truncate was merely a workaround.

There's no way to scroll to the right, so it doesn't make much sense to not wrap text. :+1: