Opening files in unstaged pane - filename includes linenumber, which causes opening files to fail
Describe the bug
Configuring a customer "opencommand" works, but when opening the file in the "unstaged changes" pae the filename parameter seem to be of a different format than what is used other places - it is of the form
My config:
os:
editCommand: 'pycharm' # see 'Configuring File Editing' section
editCommandTemplate: 'pycharm --line {{line}} {{filename}}'
openCommand: 'pycharm {{filename}}'
To Reproduce Steps to reproduce the behavior:
- Go to a change in the file panel
- Press enter, opening the change in the unstaged changes panel
- Press O for opening the file
- File opens, but it is opening a file that does not exist, because the ":5" part is included
Expected behavior File opens with the usual format, {{filename}} {{line}} being separated
Screenshots
Command being executed:

Desktop (please complete the following information):
- OS: ubuntu 20.04
- Lazygit Version 0.32.2
The culprit is pkg/gui/line_by_line_panel.go:220:
lineNumber := state.CurrentLineNumber()
filenameWithLineNum := fmt.Sprintf("%s:%d", filename, lineNumber)
if err := gui.OSCommand.OpenFile(filenameWithLineNum); err != nil {
return err
}
Unlike in the handler for editing a file, here we're assuming the required format. We should have an openCommandTemplate thingo just like we do for editCommandTemplate, and use that here. I'll chuck a good first issue label on this. If you want to take a stab at it @StefanMich lemme know!
I'll give it a go :) Fixed in #1751
Solved by #1804 and can be closed?
Yes 👍