MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / countTermBlocks

Function countTermBlocks

frontend/app/store/keymodel.ts:490–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488}
489
490function countTermBlocks(): number {
491 const allBCMs = getAllBlockComponentModels();
492 let count = 0;
493 const gsGetBound = globalStore.get.bind(globalStore);
494 for (const bcm of allBCMs) {
495 const viewModel = bcm.viewModel;
496 if (viewModel.viewType == "term" && viewModel.isBasicTerm?.(gsGetBound)) {
497 count++;
498 }
499 }
500 return count;
501}
502
503function registerGlobalKeys() {
504 globalKeyMap.set("Cmd:]", () => {

Callers 1

registerGlobalKeysFunction · 0.85

Calls 2

isBasicTermMethod · 0.80

Tested by

no test coverage detected