litecli icon indicating copy to clipboard operation
litecli copied to clipboard

Pager options not honored with click>=8.1.8

Open the-noob-of-northrose opened this issue 1 month ago • 2 comments

Seemingly related to #225

I just installed litecli today using pip, and click was 8.3.0 per the dependency specification excluding 8.1.*

My $PAGER variable is set to less -iJS (case-insensitive search, show status column, don't wrap long lines) but I noticed that the output in litecli was not honoring this (there should be an empty first column, long lines are still wrapped, searching for "afghanistan" finds no results).

Image

When I manually downgrade click to 8.1.7 or lower, this works as expected:

Image

(Status column shown [-J], lines are not wrapped [-S], searching for "afghanistan" still finds "AFGHANISTAN" [-i])

8.1.8 is the first "bad" version and this issue has not been fixed in click 8.2.* or 8.3.0.

Can you please update the dependency specifications to use 8.1.7 or lower? I am not 100% sure but perhaps click>=4.1,<=8.1.7 would be appropriate.

Thank you!

the-noob-of-northrose avatar Nov 06 '25 22:11 the-noob-of-northrose

Per https://github.com/pallets/click/pull/3055 This should be fixed in the next release of click https://github.com/pallets/click/issues/3087

rolandwalker avatar Nov 06 '25 22:11 rolandwalker

Per pallets/click#3055 This should be fixed in the next release of click pallets/click#3087

Fantastic, thank you so much!

the-noob-of-northrose avatar Nov 07 '25 04:11 the-noob-of-northrose