コード例 #1
0
	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))
コード例 #2
0
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
コード例 #3
0
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
コード例 #4
0
ファイル: back_command.py プロジェクト: Syndwar/cf_engine
	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)
コード例 #5
0
ファイル: back_command.py プロジェクト: Syndwar/stren
 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)
コード例 #6
0
def select_file(files, index):
	if index > -1 and len(files) > index:
		path = files[index]
		ProjectFile.show(path)
		BackPath.set_end(path)
コード例 #7
0
def select_file(files, index):
    if index > -1 and len(files) > index:
        path = files[index]
        ProjectFile.show(path)
        BackPath.set_end(path)