1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-06 03:53:59 +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": case "subl":
editCmdTemplate = "{{editor}} {{filename}}:{{line}}" editCmdTemplate = "{{editor}} {{filename}}:{{line}}"
case "code": case "code":
editCmdTemplate = "{{editor}} --goto {{filename}}:{{line}}" editCmdTemplate = "{{editor}} -r --goto {{filename}}:{{line}}"
} }
} }
return utils.ResolvePlaceholderString(editCmdTemplate, templateValues), nil return utils.ResolvePlaceholderString(editCmdTemplate, templateValues), nil