ratatui-org / crates-tui

A TUI for exploring crates.io using Ratatui
MIT License
59 stars 4 forks source link

Some other simplications #26

Closed joshka closed 2 months ago

joshka commented 4 months ago
joshka commented 4 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.

27

joshka commented 4 months ago

consider just having an Event::Crossterm(CrosstermEvent) variant instead of mapping each variant to Event variants.

28