Sublime Forum

Autocomplete in "Goto Symbol" of selected text

#1

What do you think to fill the input of “Goto Symbol” by default with a selected text with a same way how it’s done with a search? If no text is selected stay it empty (just “@” symbol).

0 Likes

#2

It seems that the way it works by default at the moment is to highlight the symbol in the quick panel that is the closest symbol above the caret.

I guess you could create your own plugin that would essentially add a context to the default keybinding:

{ "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }

to set the text argument to the selected text, when there is a selection.

0 Likes