This not work:[code]import sublime, sublime_plugin
class examplCommand(sublime_plugin.TextCommand):
def run(self, edit):
sublime.active_window().show_quick_panel(‘Y’, self._on_select)
def _on_select(self, idx):
for sel in self.view.sel():
self.view.insert(edit, sel.begin(), 'sample text')[/code]
I know that I need to feed edit object into _on_select(), I tried all the ways with _on_select(self, edit, idx); _on_select(self, idx, edit), still not work.?!
Please help.