Sublime Forum

Go to definition in a different column

#1

Hi,

Been a long time user of ST3, just updated to 4. In ST3, I could make go to definition or reference (by clicking on the tooltip) go to the file in a different column by clicking in that column before clicking the tooltip - leaving the code I was looking at visible.

In ST4 it will only do this if the thing I want it to go to is in the current active file in the column I select. This is really not as good as the old behaviour.

How can I restore the ST3 behaviour?

2 Likes

#2

Or, I quite like the “open tab to right” option, but how do I close the tab once it’s opened? I’ve got 6 columns now and I can’t seem to get rid of them.

0 Likes

#3

This is the only major complaint I’ve had with ST4 so far. I didn’t realize how big a part of my workflow that had become until this changed :confused: I’m usually going back and forth between the two columns I have open, so continuing to split to the right just ends up with a third column that’s too small to use on the right.

For other people who might be searching for this in the future:

  • Goto symbol in wrong split / view / pane
  • goto definition
  • goto reference
0 Likes

#4

Yeah I had no idea how reliant I was on goto definition and reference while being able to keep my tabs and layout. I’ve had to go back to ST3, 4 is completely unusable for me due to this.

0 Likes

#5

For what it’s worth, when opening the definition or reference to a symbol, either via the hover popup or the key bindings, holding Ctrl while you do it will cause the existing selected tab (if any) to be replaced with the new one instead of stacking them.

This allows you to control the columns that you want, allowing you to reference multiple things at once.

0 Likes

#6

That’s slightly better but it still means that now, to get the sane behaviour I use hundreds of times a day, I need to hold Ctrl and click a tiny icon, instead of just clicking a nice big hyperlink. I tried it and feels awkward and clumsy, which is very much the opposite of why I use Sublime.

Is there something I’ve missed? I can’t see how this feature can lead to anything other than people having hundreds of open columns they dont’t want. Hiw do you close the new column that opens?

Is there an official place for feature requests/ bug reports? Just an option to restore the old behaviour would be great.

0 Likes

#7

You can hold the key while you click the link itself as well. The options in Selection > Tab Selection allow you to work with the selected tabs, including breaking the selection. They can of course also be bound to whatever keys you like.

The place for bug reports and enhancements is on the issue tracker; you can get there by using Help > Report a Bug.

0 Likes

#8

OK so this is starting to make sense but it’s still very confusing.

First thing is that the Goto Definition/Reference is using “Tab Multi Select”, which is new and looks exactly the same as multiple columns but behaves entirely differently. This is confusing as hell.

Secondly, Ctrl-click on the hyperlink, according to the tooltip is “open tab to right” but this actually replaces the tab to the right, if there’s one there already. The tiny icon also says “open tab to right” and that does actually always open a tab to the right. Confusing as hell.

Shift-click is called “Append Tab” which as far as I can tell is exactly the same as open tab to right.

Alt-Click is called “replace all tabs” and appears to do nothing at all.

Switching to a new file closes all the new tabs so when I switch back to that file I have to open all the tabs again.

Thre’s no key to close a tab, only Ctrl-J Ctrl-arrow which closes the ones that aren’t selected. I want to close the one that is selected, but that’s not possible.

I’m struggling to understand what the workflow is here. I’ve lost the control I had over what appears in what column and now have a UI adding columns all over the place and then removing them when I least expect it. It’s getting in the way. It’s like having somebody come over and rearrange your furniture every time you get it comfortable.

1 Like

#9

Has this issue been solved? @MarkG @OdatNurd @zadjii

0 Likes