An addition that could be added with that auto window shrink would be for when a new command gets started, it could shrink back down (so if I have 32 "j"s in it, and I type a space, it could shrink back down to the default size.
From #4.
TODO: This doesn't take into account escapes and combinations, so it could trim "CTRL + L" to "TRL + L" for example.
and
TODO: Make this width configurable
From #4.
and