-
Notifications
You must be signed in to change notification settings - Fork 351
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
RFC: switch builtin pager to streampager #4203
base: main
Are you sure you want to change the base?
Conversation
Cargo.toml
Outdated
@@ -101,6 +101,7 @@ smallvec = { version = "1.13.2", features = [ | |||
"const_new", | |||
"union", | |||
] } | |||
streampager = "0.10.3" |
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.
Perhaps, "CC0-1.0" can be allowed, but I haven't updated the list yet.
https://github.com/martinvonz/jj/actions/runs/10224603116/job/28292547146?pr=4203#step:4:83
I would really like a version of IIRC, streampager's interface seemed a bit annoying in parts by default, so we might want to change its default config (or try it out at least). Apart from that, I think this might be great! |
Totally agree, and the stripped-down version exists in Sapling tree. Asked question at markbt/streampager#61 |
This brings lots of old crates as dependency, and some of them aren't needed for our use case. Though streampager looks stable, that's unfortunate.
According to the discussion on Discord, streampager is still maintained. It brings more dependencies, but seems more reliable in our use case. For example, the streampager doesn't consume inputs indefinitely whereas minus does. We can also use OS-level pipe to redirect child stderr to the pager.
193516d
to
7ea0283
Compare
Checklist
If applicable:
CHANGELOG.md