git-number icon indicating copy to clipboard operation
git-number copied to clipboard

Number column doesn't take maximum number's width

Open EDmitry opened this issue 12 years ago • 3 comments

I've noticed that other columns are aligned in the output, but the first numbers column is always separated from the second one with one space. Is there some easy way to make it always reserve 2 characters at least so that stuff is aligned nicely?

Thanks!

EDmitry avatar Jul 07 '13 09:07 EDmitry

Do you mean going from this:

$ gn
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#1      0001-Introduce-struct-date_mode-to-replace-enum-date_mode.patch
#2      0002-wip-parse_date_format.patch

to this?:

$ gn
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# 1     0001-Introduce-struct-date_mode-to-replace-enum-date_mode.patch
# 2     0002-wip-parse_date_format.patch

holygeek avatar Jul 08 '13 15:07 holygeek

Oh, it's actually for short listing mode, that means going from:

1  M vim/bundle/vim-colors-solarized
2  M vim/bundle/vim-markdown
3 ?? bin/lldb.tgz
..
12  M something

to

1   M vim/bundle/vim-colors-solarized
2   M vim/bundle/vim-markdown
3  ?? bin/lldb.tgz
..
12  M something

EDmitry avatar Jul 08 '13 20:07 EDmitry

I noticed this as well and it would be nice to have the number column have a fixed width, padded with whitespace on the left based on the maximum number of digits.

rcdailey avatar Feb 27 '14 21:02 rcdailey