예제 #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 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)
예제 #3
0
 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)