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

Could there be an option to not wrap scroll?

Open tandrewnichols opened this issue 7 years ago • 1 comments

I was thinking to myself, "I need to write an interactive git branch thing" and lo and behold, it already exists. So thanks for that! Is there any chance of adding an option to stop the scroll when you reach the bottom (rather than wrapping back to the top). I would assume that this would not be the default as probably most people like it as is, but I personally get lost when that happens. I'm used to seeing the branches listed the way git branch lists them. Not sure how hard it is to tap into git config, but the ideal solution would be to get the value from there so I only have to set it once, rather than call git bc with a particular flag every time. E.g. git config bc.scrollWrap off

tandrewnichols avatar Dec 14 '16 21:12 tandrewnichols

Sounds like an awesome idea @tandrewnichols tbh it will depend more on wether the underlying ui lib (https://github.com/SBoudrias/Inquirer.js) has the support to such an option, then it's just a matter of implementing the support to read from the git config and passing the option to inquirer.

ruyadorno avatar Feb 02 '17 19:02 ruyadorno