mlange-42 / git-graph

Command line tool to show clear git graphs arranged for your branching model
MIT License
542 stars 21 forks source link

Enable scrolling through paged output #26

Open mlange-42 opened 3 years ago

mlange-42 commented 3 years ago

Implemented paged output in #25, but did not manage to implement scrolling upwards due to problems with scroll-back buffer / setting buffer size.

juliavdkris commented 3 years ago

Yo this is a super cool project, really useful! But unless you're planning to add other functionality that requires a custom pager, you could just do something like git-graph --color always | sponge | less -R, that's how I currently have this program aliased :)

mlange-42 commented 3 years ago

Thanks, @samvdkris! As there is now also the git-graph based TUI application git-igitt (you have probably seen the link in the README), this feature is currently not on my top priority list.

Unfortunately your suggested solution does not work on Windows, and the Windows pager more seems not to work with Unicode symbols and ANSI colors. So only git-graph --style ascii | more can be used there.

juliavdkris commented 3 years ago

Ohhh I actually hadn't seen git-igitt yet, I'll have a look!