Skip to content

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

@ruhulio

Description

@ruhulio

Description of the bug

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.

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

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,

I 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.

Steps to reproduce

  1. Start ST in Save Mode using subl --safe-mode .
  2. Change preview_on_click to false
  3. Double click on a file in the side bar

Expected behavior

The newly opened tab for the file has cursor focus.

Actual behavior

The newly opened tab does not have cursor focus.

Sublime Text build number

4126

Operating system & version

macOS 12.4

(Linux) Desktop environment and/or window manager

No response

Additional information

Forum thread:
https://forum.sublimetext.com/t/double-clicking-on-a-file-in-the-side-bar-will-open-the-file-but-not-give-it-focus/64579/5

OpenGL context information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions