Sublime Forum

LaTeX backwards sync opens 2nd buffer

#1

Hello,
I just set up LaTeXTools on ST4 on Mac. Forward sync with Skim PDF viewer works as expected. Backward sync (click in the viewer to go to the source line) sort of doesn’t work. Rather than opening the existing buffer containing that file, it opens a new buffer for that file. It’s a separate buffer, not a separate view. So editing there would lead to conflicting edits. And the multiple buffers really clutter things. So backward sync is basically unusable.

The command line used by Skim is “subl $file:$line”. Is there a way to change this to tell ST to go to line $line in the existing buffer containing $file (assuming one exists)? Surely this is a solved problem (independent of Skim and LaTeXTools), and I’d appreciate any help.
Thank you,
Daniel

0 Likes

#2

Is there a way to change this to tell ST to go to line $line in the existing buffer containing $file (assuming one exists)?

This is the default behavior, you can confirm it’s working by running that it from the command line.

0 Likes

#3

Thank you, that was very helpful. Turns out that
“open_files_in_new_window”: “always”
had crept into my prefs file.
Thanks again,
Daniel

1 Like