Sublime Forum

Goto Anything preselection

#1

Hello,

i’m using a plugin to open the “Goto Anything” overlay with a prefill using this code:

# 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 :smile:

0 Likes