MRDGH2821 / atom-picgo

PicGo plugin for Atom Editor

Home Page:https://atom.io/packages/atom-picgo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE

Atom Editor is being sunset by GitHub devs. And as such this plugin won't be recieving any updates. I know it was slow & buggy, and nearly freezed atom while using the key combination. While making this extension I looked into source code of many clipboard based extensions & copy pasted it together to bring it into working form. It was too much of an hacky solution considering that I still didn't understand much of Atom Editor's API.

And after the sunset news, I won't have to update it.

If you still wish to update this, you may submit a pull request or publish your own fork.

atom-picgo

Atom Plugin for PicGo Uploader

Provide full path to the config.json file in settings. By default it will look for picgo.json in project directory. File name can be anything, as long as the extension is .json.

When no config is provided, PicGo will default to smms

Use ctrl + alt + v to paste image link

View Changelogs here

PicGo config

Generate a PicGo config by referring this guide

Here is a rough English translation from the guide. (I do not know chinese, but I could figure out the parameters. I mostly used Google Translate to understand stuff)

The config must be in given json format:

{
  "picBed": {
    "uploader": "smms", //select among given different uploaders.

    //uploader config
    "smms": {
      "token": ""
    }
  }
}

Uploaders

Default is smms, even without providing any config file in package settings, as per what I observed during tests.

Multiple uploader configurations can be set. But PicGo will only use whatever is set in uploader field value.

SM.MS

Config guide

{
  "picBed": {
    "uploader": "smms",
    "smms": {
       "token": ""                                 // your api token
    }
  }
}

Qiniu

Config guide

{
  "picBed": {
    "uploader": "qiniu",
    "qiniu": {
      "accessKey": "",
      "secretKey": "",
      "bucket": "",                               // storage bucket
      "url": "",                                  // customized domain
      "area": "z0" | "z1" | "z2" | "na0" | "as0", // storage area
      "options": "",                              // URL suffix
      "path": ""                                  // storage path
    }
  }
}

Upyun

Config guide

{
  "picBed": {
    "uploader": "upyun",
    "upyun": {
      "bucket": "",                               // storage bucket, note that v4 is different from v5
      "operator": "",                             // operator
      "password": "",                             // password
      "options": "",                              // URL suffix
      "path": ""                                  // storage path
      "url": "",                                  // customized domain
    }
  }
}

Tencent Cloud COS

Config guide

{
  "picBed": {
    "uploader": "tcyun",
    "tcyun": {
      "secretId": "",
      "secretKey": "",
      "bucket": "",                               // storage bucket, note that v4 is different from v5
      "appId": "",
      "area": "",                                 // storage area
      "path": ""                                  // storage path
      "customUrl": "", 														// customized domain
      "version": "v5" | "v4" 											// COS version
    }
  }
}

GitHub

Config guide

{
  "picBed": {
    "uploader": "github",
    "github": {
      "repo": "",                                 // user/repo
      "token": "",                                // github token
      "path": ""                                  // storage path
      "customUrl": "", 														// customized domain
      "branch": ""                                // branch, main by default
    }
  }
}

Alibaba Cloud OSS

Config guide

{
  "picBed": {
    "uploader": "aliyun",
    "aliyun": {
      "accessKeyId": "",
      "accessKeySecret": "",
      "bucket": "",                               // storage bucket
      "area": "",                                 // storage area
      "path": ""                                  // storage path
      "customUrl": "", 														// customized domain
    }
  }
}

Imgur

Config Guide

{
  "picBed": {
    "uploader": "imgur",
    "imgur": {
      "clientId": "",                             // your clientId
      "proxy": ""                                 // proxy address, only http supported
    }
  }
}

HTTP proxy

Config Guide

{
  "picBed": {
    "uploader": "proxy",
    "proxy": {
      "proxy": ""                                 // proxy address, only http supported
    }
  }
}

Licence

MIT

About

PicGo plugin for Atom Editor

https://atom.io/packages/atom-picgo

License:MIT License


Languages

Language:JavaScript 100.0%