Sublime Forum

How to open a file with the cursor in a certain position?

#1

Let’s say I’ve got a command showing all available build systems from the active project in a quick_dialog, once I’ve selected one, how can i open the *.sublime-project and moving the cursor onto that selected build-system?

Thanks in advance.

0 Likes

#2

Use the command view.window().open_file(fname,sublime.ENCODED_POSITION) where fname is using the format filenane:row:col

1 Like

#3

Thank you very much, that solution was just the perfect one

0 Likes