MCPcopy
hub / github.com/jesseduffield/lazygit / Open

Method Open

pkg/gui/controllers/files_controller.go:1045–1052  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1043}
1044
1045func (self *FilesController) Open() error {
1046 node := self.context().GetSelected()
1047 if node == nil {
1048 return nil
1049 }
1050
1051 return self.c.Helpers().Files.OpenFile(node.GetPath())
1052}
1053
1054func (self *FilesController) openDiffTool(node *filetree.FileNode) error {
1055 fromCommit := ""

Callers 9

openAndSeekFunction · 0.80
CopyFileMethod · 0.80
ForEachLineInFileFunction · 0.80
ReadRebaseTodoFileFunction · 0.80
GetConfigsMethod · 0.80
CopyFileFunction · 0.80
isDirEmptyFunction · 0.80
FileHasConflictMarkersFunction · 0.80
setForegroundPgrpFunction · 0.80

Calls 5

contextMethod · 0.95
GetSelectedMethod · 0.65
HelpersMethod · 0.65
GetPathMethod · 0.65
OpenFileMethod · 0.45

Tested by

no test coverage detected