+37

Changes view: optionally wrap lines

Robert Hannah 8 years ago updated by Richard Coutts 8 months ago 10

To avoid horizontal scrolling

Changes view
+1

Robert, please give the latest 8.1 preview a try. It's not what you are asking, but maybe helps a step forward.

Thomas, I'm unclear as to what feature/configuration option you're proposing as a potential substitute for being able to set/unset line wrapping in the changes display. It's a feature I'm desperate to see added to SmartGit as well, and if there's currently an analogue for it in the software that I'm unaware of I'd like to shed that ignorance posthaste. Could you more precisely describe what you're suggesting we try?

This is essential nowadays. Most (all?) tools we use support auto-wrap, and this is very important for things like docblocks or documentation files. Force users to wrap every 80 or 120 chars is not good because a small change in the middle of a paragraph may force all the following lines to incorporate changes that are not really meaningful.

Could you please show a screenshot of most/all tools that support line-wrap for a file compare? Thanks in advance.

Hello,


Here's an example in PHPStorm :


It's really weird to have to visually prove that "other editors have line wrapping", as if that was a novelty in 2020, but here it goes, Meld, a common diff viewer for Gnome...

+1

Hi, is there a roadmap for this feature?
I have to open another tool to view these long lines from a git log diff, which defeats the purpose of choosing Smartgit as the ultimate git tool.

I think I was a bit enthusiastic about how nice this tool is but this simple usage is still not touched in the last 6 years.

+1 for this basic feature.

I regularly work in a legacy code base where the line length is well past the 400 character mark (don't ask), and multiple changes to such long lines tend to get overlooked unless I force myself to scrub the horizontal scroll bar on these long lines to see if there is more than the one highlighted change.

And related: SmartGit tries to horizontally scroll the first diff for a line into view, but I regularly find it fails to do so for these long lines when they occur near the bottom of the file (or if there are more than a certain amount of them in a file?).  In that case the line itself is nicely vertically centered into view, but the exact word diff is not visible since the horizontal scroll bar is stuck at position 0, again forcing me to scroll the change window to hunt it down.


As for inspiration from other merge tools: WinMerge can also enable line wrapping in all windows for as long as I can remember.  Needless to say that I have set WinMerge as my external diff & merge tool, but there is no replacement for the in-built diff viewer in the SmartGit "Changes" pane.

+1

Also +1 for this feature. Reading changes/diffs for files with long lines is very difficult (as a good example - in LaTeX I write one sentence per line, which keeps the changes neat, but then they're hard to read in SmartGit).

+2

I'm working on a Latex document, so not code, and paragraphs don't have line breaks. The lack of word wrapping is killing me.