helpBar renders a row of key bindings at the bottom of the screen.
| 14 | } |
| 15 | |
| 16 | // modifiersLast moves the chorded keys to the end of the bar, keeping the order |
| 17 | // within each group. The single-key bindings are the ones a reader reaches for |
| 18 | // while working through mail, and scattering ctrl+ chords among them pushes those |
| 19 | // onto a second line and makes the whole bar read as a lookup table. Held |
| 20 | // together at the end they are a group you can skip past. |
| 21 | func modifiersLast(bindings []helpBinding) []helpBinding { |
| 22 | plain := make([]helpBinding, 0, len(bindings)) |
| 23 | chorded := make([]helpBinding, 0, len(bindings)) |
nothing calls this directly
no outgoing calls
no test coverage detected