Sublime Forum

Double clicking on a file in the side bar will open the file but not give it focus

#1

This only happens for a file that is not open in a tab, i.e. a new tab must be created to display the file. If the file is already in a tab, then it will get focus.

I would expect the behavior to be the same in both situations: double clicking on a file will always give it focus.

The relevant settings I found that I have overridden are:

"preview_on_click": false,
"select_across_groups": true,

Is there a setting that I’m missing or may have possibly overridden that is causing this behavior?

Thanks…

Edit: By “focus” I mean cursor focus in that you are able to type in the file that has been opened.

0 Likes

#2

Seems to work as I would expect here; does it work better in Safe Mode?

0 Likes

#3

I just tried Safe Mode and the behavior initially appeared to match expectations. However, this is the default setting:

"preview_on_click": true

Changing that to false exhibits the behavior I’m seeing.

In my full environment, I changed that setting to true and then it started to behave as expected. So it appears to be related to how that setting works under the covers.

0 Likes

#4

In case it matters, here’s the platform and version info:

macOS Monterey 12.4
Apple M1 Max
Sublime Text 4126
0 Likes

#5

@ruhulio At a glance seems it’s related to a bug in which the side bar control gains focus instead of the newly opened sheet when double clicking. Could you open an issue on the github tracker?

0 Likes

#6

I’ve opened an issue:

0 Likes

#7

@ruhulio thanks!

0 Likes

#8

I also use "preview_on_click": false, and don’t see this issue on Linux with build 4134 fwiw

0 Likes