mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-04 02:40:32 +08:00
I learned that there is an implementation of a pager in `crates/radicle-term/src/pager.rs`. It does not make sense to me to maintain a pager in `heartwood`, this is too far from the core of what we are trying to achieve and adds unnecessary maintenance burden. We can allow ourselves to defer to the paging done by `git` or just call the user's `$PAGER`. Even though falling back to unpaged output might not be the nicest thing, I still prefer that over maintaining the pager. It also was frustrating to me that the pager does not support things like search (like `less` does). This also significantly decreases our dependence on `termion`. The pager was originally implemented by cloudhead in40f4383bbcand integrated into `rad diff` in6dd52c94fbThis commit restores the behaviour introduced in84a95848b0(before there was a custom pager implementation).