Skip to content

feature: configurable description guide length for commit messages - #2740

Open
d-tatianin wants to merge 1 commit into
sourcegit-scm:developfrom
d-tatianin:description-length-support
Open

d-tatianin wants to merge 1 commit into
sourcegit-scm:developfrom
d-tatianin:description-length-support

Conversation

@d-tatianin

Copy link
Copy Markdown

Add a Description Guide Length preference next to the existing subject guide length. The commit message editor now:

  • shows a DESCRIPTION n/limit counter (longest body line) with the same warning color and icon used for the subject
  • draws the vertical column guide at the configured length instead of a hardcoded 80 columns

Since the working copy commit box, the reword editor in interactive rebase, the commit template editor and the standalone editor mode all share CommitMessageToolBox, the guide applies everywhere a message is written. The default stays at 80 so existing users see no change.

Add a `Description Guide Length` preference next to the existing subject
guide length. The commit message editor now:

- shows a `DESCRIPTION n/limit` counter (longest body line) with the same
  warning color and icon used for the subject
- draws the vertical column guide at the configured length instead of a
  hardcoded 80 columns

Since the working copy commit box, the reword editor in interactive
rebase, the commit template editor and the standalone editor mode all
share `CommitMessageToolBox`, the guide applies everywhere a message is
written. The default stays at 80 so existing users see no change.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
@d-tatianin
d-tatianin force-pushed the description-length-support branch from cbb4850 to f8debc0 Compare September 24, 2026 21:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant