def on_highlighted(self, index): path = os.path.join(self.SNIPPETS_PATH, self.all_snippets[index]) self.window.open_file(path, sublime.TRANSIENT)