Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could there be an option to not wrap scroll? #12

Open
tandrewnichols opened this issue Dec 14, 2016 · 1 comment
Open

Could there be an option to not wrap scroll? #12

tandrewnichols opened this issue Dec 14, 2016 · 1 comment

Comments

@tandrewnichols
Copy link

tandrewnichols commented Dec 14, 2016

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

@ruyadorno
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants