Skip to content

Commit 975dbdd

Browse files
committed
feat: Auto uploading README update.
1 parent 5c88751 commit 975dbdd

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

Diff for: README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,30 @@
1313

1414
> Note: You can't use the plugin downloaded from marketplace due to CORS restriction. Please load it manually.
1515
16+
## Configuration
17+
18+
Currently, we only support turn off auto uploading feature in the configuration file.
19+
20+
```json
21+
{
22+
"disabled": false,
23+
"autoUploading": true
24+
}
25+
```
26+
1627
## How to use it?
1728

1829
Currently, we only support [PicGo](https://github.com/Molunerfinn/PicGo), so please open PicGo manually.
1930

20-
Right-click any block' dot to show its context menu, and select `Upload image`. All images detected in that block will be uploaded, and replaced with a remote URL.
31+
By default, when you paste any content into a block, after exit editing that block, the plugin will check whether its content contains any images, if it does, the plugin will upload them and replace them with remote URLs. You can turn off this feature in the configuration file.
32+
33+
![example_usage](./example_usage_auto.gif)
34+
35+
Alternatively, if you have inserted any images before, you can right-click any block' dot to show its context menu, and select `Upload image`. All images detected in that block will be uploaded, and replaced with remote URLs.
2136

2237
![example_usage](./example_usage.gif)
2338

24-
## Note
39+
### Note
2540

2641
Since we don't have any permission to operate the file system in a logseq plugin, we can't delete the original file saved by logseq. So we create a page named **"Uploaded image file record(created by logseq-plugin-image-uploader)"** to save all the images we uploaded. You can delete them manually. (One image path actually can appear more than once on that page, for example, you use that image many times, and you upload them more than once)
2742

Diff for: example_usage_auto.gif

880 KB
Loading

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logseq-plugin-image-uploader",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"main": "dist/index.html",
55
"scripts": {
66
"dev": "vite",

0 commit comments

Comments
 (0)