kiwilime.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:kiwi 作者: alpha1e0 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号