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

Function GetNewTabLayout

pkg/wcore/layout.go:63–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func GetNewTabLayout() PortableLayout {
64 return PortableLayout{
65 {IndexArr: []int{0}, BlockDef: &waveobj.BlockDef{
66 Meta: waveobj.MetaMapType{
67 waveobj.MetaKey_View: "term",
68 waveobj.MetaKey_Controller: "shell",
69 },
70 }, Focused: true},
71 }
72}
73
74func GetLayoutIdForTab(ctx context.Context, tabId string) (string, error) {
75 tabObj, err := wstore.DBGet[*waveobj.Tab](ctx, tabId)

Callers 1

CreateTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected