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

Enable scrolling through paged output

Open mlange-42 opened this issue 5 years ago • 3 comments

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

mlange-42 avatar Dec 29 '20 00:12 mlange-42

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 :)

juliavdkris avatar Feb 08 '21 12:02 juliavdkris

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.

mlange-42 avatar Feb 08 '21 13:02 mlange-42

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

juliavdkris avatar Feb 08 '21 14:02 juliavdkris