()
| 27 | return t1; |
| 28 | } |
| 29 | export function CtrlOToExpand() { |
| 30 | const $ = _c(2); |
| 31 | const isInSubAgent = useContext(SubAgentContext); |
| 32 | const inVirtualList = useContext(InVirtualListContext); |
| 33 | const expandShortcut = useShortcutDisplay("app:toggleTranscript", "Global", "ctrl+o"); |
| 34 | if (isInSubAgent || inVirtualList) { |
| 35 | return null; |
| 36 | } |
| 37 | let t0; |
| 38 | if ($[0] !== expandShortcut) { |
| 39 | t0 = <Text dimColor={true}><KeyboardShortcutHint shortcut={expandShortcut} action="expand" parens={true} /></Text>; |
| 40 | $[0] = expandShortcut; |
| 41 | $[1] = t0; |
| 42 | } else { |
| 43 | t0 = $[1]; |
| 44 | } |
| 45 | return t0; |
| 46 | } |
| 47 | export function ctrlOToExpand(): string { |
| 48 | const shortcut = getShortcutDisplay('app:toggleTranscript', 'Global', 'ctrl+o'); |
| 49 | return chalk.dim(`(${shortcut} to expand)`); |
nothing calls this directly
no test coverage detected