def store_start_file(self): view = self.view region = view.sel()[0] fn = view.file_name() line, col = view.rowcol(region.a) BackPath.set_start((fn, line))
def show_search_results(files): result = True if (0 == len(files)): result = False elif (1 == len(files)): ProjectFile.show(files[0]) BackPath.set_end(files[0]) else: show_files_in_quick_panel(files) return result
def run(self, text): if BackPath.is_valid(): current_path = BackPath.get_end() destination_path = BackPath.get_start() if (current_path and destination_path): BackPath.set_start(current_path) BackPath.set_end(destination_path) ProjectFile.show(destination_path)
def select_file(files, index): if index > -1 and len(files) > index: path = files[index] ProjectFile.show(path) BackPath.set_end(path)