From 9e120a79a7eebb6c5533c894bfd1ba57224d07c0 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Mon, 28 Mar 2016 19:55:37 +0300 Subject: [PATCH] Make commit message inputs monospaced - Make input and textarea when writing a commit message monospaced - Limit input to about 50 chars so you see when you are close to the warning - Limint textarea to about 80 chars and turn off wrapping. This simulates the behaviour of Vim when writing a Git commit message. Unfortunately implementing autowrapping like Vim is harder and quite more opinionated. --- extension/content.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/extension/content.css b/extension/content.css index e230674..8ce5ab2 100755 --- a/extension/content.css +++ b/extension/content.css @@ -295,3 +295,16 @@ svg.octicon.octicon-star.dashboard-event-icon { .diff-toolbar-filename { font-weight: bold; } + +/* limit width of commit title and description inputs to 50/80 chars */ +#commit-summary-input, #commit-description-textarea { + font-family: monospace !important; +} + +#commit-summary-input { + width: 410px !important; +} + +#commit-description-textarea { + width: 645px !important; +}