in reply to Re^2: Algorithm to reduce the weight of a collection of bags
in thread Algorithm to reduce the weight of a collection of bags

It’s not Perl (unfortunately) but it’s pretty spiffy and already works for what you’re probably wanting to do: visidata.

Edit: iOS smart quotes strike again.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re^3: Algorithm to reduce the weight of a collection of bags

Replies are listed 'Best First'.
Re^4: Algorithm to reduce the weight of a collection of bags
by ibm1620 (Hermit) on Jul 06, 2022 at 23:09 UTC
    Cool! (Link should be https://www.visidata.org)
Re^4: Algorithm to reduce the weight of a collection of bags
by ibm1620 (Hermit) on Jul 07, 2022 at 19:17 UTC
    It is quite spiffy, and it truncates in more or less the same way I was trying to do (furthermore, it supports left/right scrolling, and stops narrowing the columns beyond a certain resaonable limit). Thanks for the info!