leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
419 stars 48 forks source link

fixes leahneukirchen/mblaze#194 #223

Open mbauhardt opened 2 years ago

mbauhardt commented 2 years ago

fixes leahneukirchen/mblaze#194

Why Configure the number of lines which are shown on top of mless would be nice to have.

How Introduce property Scan-Lines available in $MBLAZE/profile to configure the number of lines to scan on top of mless. mless reads this property and using it. if not set the default value of 6 is used to not break the existing behaviour. Also updating the man pages for mless and mblaze-profile.

leahneukirchen commented 2 years ago

I don't think this will work, as we had the explicit cases exactly for 6 lines by default, you'd need to generalize the algorithm.

Also note that in POSIX sh you can use $((math)) instead of $(expr math).

mbauhardt commented 2 years ago

I don't think this will work, as we had the explicit cases exactly for 6 lines by default, you'd need to generalize the algorithm.

ah. ok. i see. you mean we have to do a loop around https://github.com/leahneukirchen/mblaze/pull/223/files#diff-0f549fd15ac39a405676bb080ab4f082f510f787923824ac807f07b45b86a8e3R30 ?

this make the thing a bit more complicated. i will take a closer look later this week.