Sublime Forum

ST4 click through to file without showing `goto_definition` panel

#1

I’ve added the following to Default (OSX).sublime-mousemap:

[
  {
    "button": "button1",
    "command": "goto_definition",
    "count": 1,
    "modifiers": [
      "super"
    ],
    "press_command": "drag_select"
  }
]

Command + click[ing] on a file path now takes me to the file in question, as expected.

What I’d like, though, would be to get to my destination without the “Definitions” panel shown. Possible?

0 Likes

#2

Are you looking for F12?

1 Like

#3

F12 has the same affect. 1. Opens file, but 2. with the “Definitions” panel shown. I only want no. 1.

0 Likes

#4

The goto-anything panel only shows when there is more than one definition, if there’s only one it will jump directly to it.

1 Like

#5

Maybe “goto_definition” only works when you click a function or a variable.

I use lsp, the following config works for me.

    {
        "button": "button1",
        "count": 1,
        "modifiers": [
            "ctrl"
        ],
        "press_command": "drag_select",
        "command": "lsp_symbol_definition"
    },
0 Likes