MCPcopy Create free account
hub / github.com/basecamp/hey-cli / helpBar

Struct helpBar

internal/tui/help.go:16–20  ·  view source on GitHub ↗

helpBar renders a row of key bindings at the bottom of the screen.

Source from the content-addressed store, hash-verified

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.
21func modifiersLast(bindings []helpBinding) []helpBinding {
22 plain := make([]helpBinding, 0, len(bindings))
23 chorded := make([]helpBinding, 0, len(bindings))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected