Skip to content

Wrap lines config option - #559

Open
jonathanj wants to merge 2 commits into
altsem:masterfrom
jonathanj:wrap-lines-config-option
Open

jonathanj wants to merge 2 commits into
altsem:masterfrom
jonathanj:wrap-lines-config-option

Conversation

@jonathanj

Copy link
Copy Markdown
Collaborator

I like the layout change to the commits view, but I found myself being frustrated by line wrapping consuming a lot of space when I use gitu in a split on my laptop:

image

I had Claude add a general.wrap_lines option (defaulting to true, preserving the current behaviour) and reviewed its implementation which seems reasonable to me (packing spans).

This is what it looks like with general.wrap_lines = false:

image

(Let me know if i should squash the commits together.)

Checklist

A span the layout cut off at an edge was still printed in full, so a
single word wider than the screen ran into the terminal's own wrapping.

@altsem altsem left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Should we keep the ellipsis at the end for truncated lines?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants