def run(self, edit): view = self.view if gs.is_go_source_view(view): if not gstest.handle_action(view, 'left-click'): view.run_command('gs_doc', {"mode": "goto"}) elif view.score_selector(gs.sel(view).begin(), "text.9o") > 0: view.window().run_command("gs9o_open_selection")
def run(self, edit): view = self.view if gs.is_go_source_view(view): if not gstest.handle_action(view, 'right-click'): view.run_command('gs_doc', {"mode": "hint"})