From: "Christoph Sommer via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Christoph Sommer <sommer@cms-labs.org>
Subject: [PATCH 0/2] gitk: text wrapping in ctext (commit headers, subject, and body)
Date: Mon, 09 Dec 2024 18:08:55 +0000 [thread overview]
Message-ID: <pull.1835.git.1733767737.gitgitgadget@gmail.com> (raw)
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
next reply other threads:[~2024-12-09 18:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 18:08 Christoph Sommer via GitGitGadget [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.1835.git.1733767737.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=sommer@cms-labs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).