Sublime Forum

Help passing @methodName to show_overlay goto

#1

Doing it like this takes me to the class

        self.window.run_command('show_overlay', {
            'overlay': 'goto',
            'text': 'threadscontroller',
        })

But this doesn’t work, it doesn’t take me to the method.

        self.window.run_command('show_overlay', {
            'overlay': 'goto',
            'text': 'threadscontroller@show',
        })

Am I missing something?

0 Likes

#2

Is there more than one file that matches the fuzzy pattern threadscontroller? If so perhaps it’s choosing the wrong one (like say the first one in the list even if that’s not the right one).

0 Likes

#3

Nope, it’s an exact match and only matches one. If I type that exact string in manually it takes me to the method.

0 Likes

#4

In that case perhaps you need to open the panel and then programaticallyy insert the text to simulate typing it in. It might only do the search in response to input being entered (in which case maybe this also won’t work).

1 Like

#5

I think you may be right, that it’s going to be needed to be typed in. Even if it turns out it doesn’t work, it sounds like fun :slight_smile:

Thanks i’ll give it a try.

0 Likes