MCPcopy Index your code
hub / github.com/anomalyco/opencode / activeKeyGroup

Function activeKeyGroup

packages/tui/src/feature-plugins/system/which-key.tsx:121–124  ·  view source on GitHub ↗
(active: ActiveKey<Renderable, KeyEvent>)

Source from the content-addressed store, hash-verified

119}
120
121function activeKeyGroup(active: ActiveKey<Renderable, KeyEvent>) {
122 if (active.continues) return "System"
123 return text(active.commandAttrs?.category) ?? text(active.bindingAttrs?.group) ?? UNKNOWN
124}
125
126function activeKeyEntry(api: TuiPluginApi, active: ActiveKey<Renderable, KeyEvent>): Entry {
127 const key = api.keys.formatSequence([

Callers 1

activeKeyEntryFunction · 0.85

Calls 1

textFunction · 0.70

Tested by

no test coverage detected