{"thread":{"id":"42190","subject":"Feature request: Add word wrapping to gitk display","startedAt":"2016-05-01T09:37:52Z","lastAt":"2016-05-01T09:37:52Z","messageCount":1,"participants":["Ailin Nemui"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"285067","messageId":"1462095472.542.2.camel@gmail.com","threadId":"42190","inReplyTo":null,"subject":"Feature request: Add word wrapping to gitk display","fromName":"Ailin Nemui","fromEmail":"ailin.nemui@gmail.com","sentAt":"2016-05-01T09:37:52Z","receivedAt":"2016-05-01T09:37:52Z","isPatch":false,"sender":{"key":"ailin.nemui@gmail.com","avatar":null},"body":"Hi,\n\nwhen working on text files with long lines, \"word diff\" can produce\nappropriate diff display. However, the long lines cannot be viewed very\nwell in gitk (requires excessive scrolling).\n\nI found out that it is quite easy to achieve this\n\n\nindex 805a1c7..5ba7472 100755\n--- a/gitk\n+++ b/gitk\n@@ -2404,7 +2404,7 @@ proc makewindow {} {\n     set ctext .bleft.bottom.ctext\n     text $ctext -background $bgcolor -foreground $fgcolor \\\n        -state disabled -font textfont \\\n-       -yscrollcommand scrolltext -wrap none \\\n+       -yscrollcommand scrolltext -wrap word \\\n        -xscrollcommand \".bleft.bottom.sbhorizontal set\"\n     if {$have_tk85} {\n        $ctext conf -tabstyle wordprocessor\n\n\nhowever I'm not otherwise knowledgeable about Tk to make this a\nproperly configurable switch. I think it would be a very nice addition\nto have, a check box next to \"Line diff/ color words\" that says \"Wrap\nwords in display\".\n\n\nThanks,\nNei\n"}]}