k4rthik / git-cal

github like contributions calendar on terminal
MIT License
1.12k stars 61 forks source link

Show only as large a time period as the terminal has room for #11

Open malleusinferni opened 11 years ago

malleusinferni commented 11 years ago

Right now my 80 column terminal displays reasonable output for --period -7, but for anything longer than that (eg. the default period) it overflows and wraps. Assuming there are no issues with half-width vs. full-width characters that depend entirely on user fonts, the program should be able to detect the terminal width (using tput cols) and limit the default output accordingly.

bruno- commented 10 years ago

:+1: I use tmux and often have a lot of splits that reduce terminal size to about 100 columns. Default git col is not looking nice for that terminal width which is a pity.

ELLIOTTCABLE commented 10 years ago

Ditto here. Gotta re-size my window to make git-cal useful. That's ugly. (And I'd like to include it in common-usage scripts which show the overall status of my git repositories when I cd into them.)