git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gitk: text wrapping in ctext (commit headers, subject, and body)
@ 2024-12-09 18:08 Christoph Sommer via GitGitGadget
  2024-12-09 18:08 ` [PATCH 1/2] gitk: make headings of preferences bold Christoph Sommer via GitGitGadget
  2024-12-09 18:08 ` [PATCH 2/2] gitk: add text wrapping preferences Christoph Sommer via GitGitGadget
  0 siblings, 2 replies; 5+ messages in thread
From: Christoph Sommer via GitGitGadget @ 2024-12-09 18:08 UTC (permalink / raw)
  To: git; +Cc: Christoph Sommer

Using gitk to view diffs of source code without hard linebreaks is a bit
painful without dynamic word wrapping, for which I could not find a
preference. The only related one I found was for wrapping the commit subject
(called a comment in the source code, I guess), and that did not seem to be
reconfigurable in a running gitk.

On the off chance that such features might also be useful to somebody else I
am sharing them publicly, as two semi-related changes:


gitk: add text wrapping preferences
===================================

Add a new preference "wrapdefault" which allows enabling char/word wrap.
Impacts all text in the ctext widget for which no other preference exists.

Also make the (existing) preference "wrapcomment" configurable graphically.
Its setting impacts only the "comment" part of the ctext widget.


gitk: make headings of preferences bold
=======================================

Make preference groups like "Diff display options" stand out more.

Christoph Sommer (2):
  gitk: make headings of preferences bold
  gitk: add text wrapping preferences

 gitk-git/gitk | 45 ++++++++++++++++++++++++++++++++-------------
 1 file changed, 32 insertions(+), 13 deletions(-)


base-commit: e66fd72e972df760a53c3d6da023c17adfc426d6
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1835%2Fsommer%2Fmaster-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1835/sommer/master-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1835
-- 
gitgitgadget

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-12 18:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-09 18:08 [PATCH 0/2] gitk: text wrapping in ctext (commit headers, subject, and body) Christoph Sommer via GitGitGadget
2024-12-09 18:08 ` [PATCH 1/2] gitk: make headings of preferences bold Christoph Sommer via GitGitGadget
2024-12-12 18:43   ` Johannes Sixt
2024-12-09 18:08 ` [PATCH 2/2] gitk: add text wrapping preferences Christoph Sommer via GitGitGadget
2024-12-12 18:58   ` Johannes Sixt

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).