MCPcopy Create free account
hub / github.com/codeaashu/claude-code / CtrlOToExpand

Function CtrlOToExpand

src/components/CtrlOToExpand.tsx:29–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 return t1;
28}
29export 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}
47export function ctrlOToExpand(): string {
48 const shortcut = getShortcutDisplay('app:toggleTranscript', 'Global', 'ctrl+o');
49 return chalk.dim(`(${shortcut} to expand)`);

Callers

nothing calls this directly

Calls 1

useShortcutDisplayFunction · 0.85

Tested by

no test coverage detected