* Feature request: Add word wrapping to gitk display
@ 2016-05-01 9:37 Ailin Nemui
0 siblings, 0 replies; only message in thread
From: Ailin Nemui @ 2016-05-01 9:37 UTC (permalink / raw)
To: git
Hi,
when working on text files with long lines, "word diff" can produce
appropriate diff display. However, the long lines cannot be viewed very
well in gitk (requires excessive scrolling).
I found out that it is quite easy to achieve this
index 805a1c7..5ba7472 100755
--- a/gitk
+++ b/gitk
@@ -2404,7 +2404,7 @@ proc makewindow {} {
set ctext .bleft.bottom.ctext
text $ctext -background $bgcolor -foreground $fgcolor \
-state disabled -font textfont \
- -yscrollcommand scrolltext -wrap none \
+ -yscrollcommand scrolltext -wrap word \
-xscrollcommand ".bleft.bottom.sbhorizontal set"
if {$have_tk85} {
$ctext conf -tabstyle wordprocessor
however I'm not otherwise knowledgeable about Tk to make this a
properly configurable switch. I think it would be a very nice addition
to have, a check box next to "Line diff/ color words" that says "Wrap
words in display".
Thanks,
Nei
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-01 9:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01 9:37 Feature request: Add word wrapping to gitk display Ailin Nemui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).