MCPcopy
hub / github.com/wavetermdev/waveterm / handleSplitVertical

Function handleSplitVertical

frontend/app/store/keymodel.ts:393–401  ·  view source on GitHub ↗
(position: "before" | "after")

Source from the content-addressed store, hash-verified

391}
392
393async function handleSplitVertical(position: "before" | "after") {
394 const layoutModel = getLayoutModelForStaticTab();
395 const focusedNode = globalStore.get(layoutModel.focusedNode);
396 if (focusedNode == null) {
397 return;
398 }
399 const blockDef = getDefaultNewBlockDef();
400 await createBlockSplitVertically(blockDef, focusedNode.data.blockId, position);
401}
402
403let lastHandledEvent: KeyboardEvent | null = null;
404

Callers 1

registerGlobalKeysFunction · 0.85

Calls 4

getDefaultNewBlockDefFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected