1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

open code in existing window

This commit is contained in:
Jesse Duffield 2022-03-16 19:47:03 +11:00
parent 11acac0091
commit f53b10072d

View File

@ -66,7 +66,7 @@ func (self *FileCommands) GetEditCmdStr(filename string, lineNumber int) (string
case "subl":
editCmdTemplate = "{{editor}} {{filename}}:{{line}}"
case "code":
editCmdTemplate = "{{editor}} --goto {{filename}}:{{line}}"
editCmdTemplate = "{{editor}} -r --goto {{filename}}:{{line}}"
}
}
return utils.ResolvePlaceholderString(editCmdTemplate, templateValues), nil