typora+gitee+picgo-core

typora+gitee+picgo-core


文章目录


1.设置偏好设置

typora+gitee+picgo-core

2.安装插件

确保有nodejs和npm

archlinux

yay -S nodejs npm

安装插件

# 进入目录
cd .config/Typora/picgo/linux
# 安装 super-prefix gitee-uploader
./picgo install super-prefix
./picgo install gitee-uploader

windows路径

C:\Users\rh\AppData\Roaming\Typora\picgo\win64

3.设置图床

命令行配置

./picgo set uploader
#一步一步选择

或者配置文件vim ~/.picgo/config.json

{
  "picBed": {
    "current": "gitee",
    "gitee": {
      "repo": "RicardoJia/picbed",
      "branch": "master",
      "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "path": "img",
      "customPath": "default",
      "customUrl": ""
    }
  },
  "picgoPlugins": {
    "picgo-plugin-super-prefix": true,
    "picgo-plugin-gitee-uploader": true
  }
}

4.测试

5.本地图片地址

~/.config/Typora/typora-user-images/

C:\Users\rh\AppData\Roaming\Typora\typora-user-images

windows下bat脚本

del /f /s /q C:\Users\rh\AppData\Roaming\Typora\typora-user-images

记得定时清除

上一篇:文件上传(WebUploader)成功之前自定义裁剪(vue-img-cutter),上传裁剪的图片,并兼容ie


下一篇:vue 文件上传组件vue-simple-upload 基本使用与源码剖析,前后端分离实现上传,分片上传等流程