MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / initialWindowViewNameMap

Function initialWindowViewNameMap

pkg/gui/gui.go:661–669  ·  view source on GitHub ↗
(contextTree *context.ContextTree)

Source from the content-addressed store, hash-verified

659}
660
661func initialWindowViewNameMap(contextTree *context.ContextTree) *utils.ThreadSafeMap[string, string] {
662 result := utils.NewThreadSafeMap[string, string]()
663
664 for _, context := range contextTree.Flatten() {
665 result.Set(context.GetWindowName(), context.GetViewName())
666 }
667
668 return result
669}
670
671func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer) types.ScreenMode {
672 if startArgs.ScreenMode != "" {

Callers 1

resetStateMethod · 0.85

Calls 5

NewThreadSafeMapFunction · 0.92
SetMethod · 0.80
GetWindowNameMethod · 0.65
GetViewNameMethod · 0.65
FlattenMethod · 0.45

Tested by

no test coverage detected