Closed joshka closed 2 months ago
Help widget render method has a long iterator chain which calls get command a bunch of times. The command list is constant data. Write it as an constant array and then map that instead of the repeated code.
consider just having an Event::Crossterm(CrosstermEvent) variant instead of mapping each variant to Event variants.
[ ] Status bar basically has an if statement that does something different for each mode that it's presented in, but the shared common functionality isn't enough to make it worth doing that way. Instead just handle that in the specific widget E.g. take code that is kinda like:
and simplify it
[x] Help widget render method has a long iterator chain which calls get command a bunch of times. The command list is constant data. Write it as an constant array and then map that instead of the repeated code.
[x] consider just having an Event::Crossterm(CrosstermEvent) variant instead of mapping each variant to Event variants.