Sublime Forum

"Goto Definition" does not reuse editors in other groups

#1

Hi,

I ran into the following issue, pretty sure it wasn’t happening before. Let’s say I’m working on file A, I use “goto definition” and the definition is in file B: the editor opens file B, that works great. However, let’s say I’m using a 2 group layout. On the right side (group 1) I have file A, on the left side (group 2) I have file B. Now, using “goto definition” from file A opens a new editor with file B on the right side, rather then just jumping to the right side. I use “goto definition” a lot and I also use 2-3 groups: this means I end up with many duplicate editors and the groups become very cluttered.

Any ideas how to solve this?

Thanks,
Z

0 Likes

#2

I’m seeing the same issue for the last few weeks (for Python code, if that makes any difference). I use a 2-group setup also, generally with library code in the right-hand group. Previously, “Goto Definition” would jump to the implementation in the other group if I already had a tab for the module there, or otherwise open a new tab in the current group.

Details:

DPI scale: 1
startup, version: 3084 linux x64 channel: dev
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/jvl/.config/sublime-text-3/Packages
state path: /home/jvl/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/jvl/.config/sublime-text-3/Installed Packages
ignored_packages: "WordHighlight", "RestructuredText", "Python Create Package", "Python Nose Testing Snippets", "MarkdownTOC", "TodoReview", "Cheat Sheets", "Predawn", "Markdown Preview", "Preferences Editor", "SideBarEnhancements", "Markdown", "SyncedSideBar", "Dictionaries", "Theme - Afterglow", "PlainTasks", "Vintage"]
pre session restore time: 0.201358
loading dictionary Packages/Language - English/en_GB.dic
warning: mnemonic b not found in menu caption SFTP/FTP
warning: mnemonic v not found in menu caption SVN
warning: mnemonic c not found in menu caption CSV
startup time: 0.419987
first paint time: 0.443054
0 Likes

#3

Searched in the issues tracker on Github (OK, I should have done that first), and found this:
github.com/SublimeTextIssues/Core/issues/311

The last comment on that issue says:

FichteFoll commented on 20 Feb
All the above are fixed in 3071.

Goto definition now always opens the selected file in the current group even if it is already open in a different one.

Maybe this explains why the behaviour has changed?

0 Likes

#4

Opened an issue.
https://github.com/SublimeTextIssues/Core/issues/813

0 Likes

#5

Issue moved to github.com/SublimeTextIssues/De … issues/121

0 Likes