def run(self, edit):
path = gitPath(self.view.window())
current_path = self.view.file_name()
if current_path is not None and current_path.startswith(path) and gitWebBlameUrl() is not None:
remaining_path = current_path[len(path):]
print(remaining_path,' ', current_path, ' ', path)
link = gitWebBlameUrl().format(remaining_path)
webbrowser.open_new(link)
评论列表
文章目录