-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
progress: Improve the Progress Plugin #622
base: master
Are you sure you want to change the base?
Conversation
plugins/progress/progress.plugin.sh
Outdated
delay | ||
printf "%s\n" "$clear_line" | ||
value=0 | ||
fi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message Done!
seems to have been dropped. Is this an intentional behavioral change? What is the rationale?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of clear when it's done, because the application continues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That explains that the new behavior works fine, but it is the same for the previous behavior. Rather, the previous behavior was even more clear about that. Also, does that "?" mean you don't remember why you did it? So, can I think it was not the intentional behavioral change? I avoid breaking changes unless there is a clear reason. Could you recover the original behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When comparing other progress bar approaches, like that in apt, I found that it didn't present a Done! For each progress bar that was displayed. Tried to mimic that behavior.
The removal was intentional, but I'm happy to restore it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thing that this PR changes without explanation is the accelerating growth of the progress bar. Now it is linear. What is the reason for this change? Did you remove that knowing the original intent? Or did you just remove it because you don't understand it?
* Update plugins/progress/progress.plugin.sh * Update to use clear lines * Use . instead of - Co-authored-by: Koichi Murase <[email protected]>
The percentile shown to the user was kept as the actual value since it is better to show the objective numbers. The numbers wouldn't affect the visual perceptance and the user experience so much.
Thanks for following up on this. Completely forgot about it. |
Thanks for checking it. If you are fine with the new changes I pushed, I'll squash them and merge the PR. |
Tested it out, and it works really well. Thanks so much 🚀 |
This change improves the progress plugin by...
Here's a good way to test it...