def run(self, edit, **args):
if not self._is_kiwilime_view:
return
point = current.point(self.view)
file_name, lineno = get_file_location(self.view, point)
if not file_name:
return None
if os.path.exists(file_name):
file_loc = "{0}:{1}".format(file_name, lineno)
self.view.window().open_file(file_loc, sublime.ENCODED_POSITION)
else:
show_error("File '{0}'' doses not exists.".format(
file_name))
评论列表
文章目录