lazygit
lazygit copied to clipboard
Feature Request: commit message length warning
There's a convention that the line length of commit messages should be limited to 50/72 characters.
Both VSCode (git.inputValidationLength) and Vim (gitcommitSummary) have features where the editor will warn you when the length of the current line of the commit message is greater than a configured limit.
It would be nice if lazygit had this same functionality where a warning will be displayed in the commit message input prompt if the current line length is greater than the configuration setting commitLengthWarning: <int>.
Totally agree, I think it can be really simple like I have in zsh where the commit message starts getting red characters when you pass 72 chars.
I can create a PR for this later since I already have made the commit on my fork, people interested can check the changes here:
- https://github.com/jesseduffield/lazygit/compare/master...GMkonan:commit-message-length-warning
Is anyone interested in opening this issue back up?
About 2 years since the issue's creation, and more than a year since the PR was created by @GMkonan. Coming up on a year since the last comment.
Yeah, I would like to have this feature too. Now I edit the commit message in another git client before pushing 😜
Please give #3173 a try then, I think it's much better than what's proposed here.