Hi,
I would like to open a file from the API and jump to a specified line number. I thought it should work using following code:
v = sublime.active_window().open_file(filename)
v.run_command("goto_line", {"line": linenumber} )
but it works only if the file was already open when the code is executed. If the file was not yet open, it is opened, but at line 1. And I could nod figure out how to jump to another line. Why does my code not work and how can it be fixed?