Leo's code is a behemoth. Nothing we can do is going to drastically shrink it, or make it a snap to understand or change.
Imo, using Qt's signals more effectively is likely to be the best way to simplify Leo's code
just a little bit. This page explains the benefits.
Signals aren't a panacea. Understanding signals and their interactions isn't trivial. However, cff <signal name> gives an excellent overview.
I don't have any immediate plans to use more signals in Leo. However, I would welcome any experiments in this direction.
Edward