MCPcopy Create free account
hub / github.com/anomalyco/opencode / leaderDisplay

Function leaderDisplay

packages/tui/src/keymap.tsx:180–184  ·  view source on GitHub ↗
(config: FormatConfig)

Source from the content-addressed store, hash-verified

178}
179
180function leaderDisplay(config: FormatConfig) {
181 const key = config.keybinds.get(LEADER_TOKEN)?.[0]?.key
182 if (!key) return TuiKeybind.LeaderDefault
183 return typeof key === "string" ? key : stringifyKeyStroke(key)
184}
185
186function leaderKey(config: FormatConfig) {
187 return config.keybinds.get(LEADER_TOKEN)?.[0]?.key

Callers 1

formatOptionsFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected