Recently it came up to me, that I miss some behavior from the âgoto everywhereâ. I wanted to enhance the current âgotoâ (ctrl+r) a little bit, by appending selection text to â@â (e.g. if âmyFunctionâ text is highlighted, the âGoto everywhereâ popup would start with â@myFunctionâ rather than â@â). The problem is that I can run some commands from within plugin, but .run_command("show_overlay", ...)
does nothing.
The plugin as of now is extremely simple, just 4 lines:
[code]import sublime, sublime_plugin
class GotoSelectionCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().run_command(âshow_overlayâ, {âoverlayâ: âgotoâ, âtextâ: â@replace_with_first_selectionâ})[/code]
Do I miss something, maybe?