Home Download Buy Blog Forum Support

Goto Anything preselection

Goto Anything preselection

Postby robbib on Mon Nov 04, 2013 10:44 am


i'm using a plugin to open the "Goto Anything" overlay with a prefill using this code:

Code: Select all
# Call the goto overlay, give it the current word or selection, and ask it to show
self.window.run_command("show_overlay", {"overlay": "goto", "text": lineContents, "show_files": "true"})

It uses a text to prefill the search field, but it does not automatically preselect the first hit.

Is there any way to preselect the first hit so that i can press enter to jump straight to the hit?

Thanks :)
Posts: 5
Joined: Mon Nov 04, 2013 10:39 am

Return to Plugin Development

Who is online

Users browsing this forum: BPS and 7 guests