You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Press <kbd>control+shift+command+3</kbd> or <kbd>control+shift+command+4</kbd> to capture and copy a screenshot.
15
+
- Press <kbd>control+shift+command+3</kbd> or <kbd>control+shift+command+4</kbd>
16
+
to capture and copy a screenshot.
16
17
17
-
- Run `clip2imgur` in your terminal, then boom, the image URL is in your clipboard.
18
+
- Run `clip2imgur` in your terminal, then boom, the image URL is in your
19
+
clipboard.
18
20
19
-
- If it is your first time to run `clip2imgur`, you can choose to authorize this tool, and your image will be posted in your image collection (`username.imgur.com/all`).
21
+
- If it is your first time to run `clip2imgur`, you can choose to authorize this
22
+
tool, and your image will be posted in your image collection
23
+
(`username.imgur.com/all`).
20
24
21
-
- You also can choose to post anonymously, but it is hard to get the url later and Imgur might delete your posts.
25
+
- You also can choose to post anonymously, but it is hard to get the url later
26
+
and Imgur might delete your posts.
22
27
23
-
In default setting, the URL of posted image will be copied to your clipboard. You can use flags to configure it.
28
+
In default setting, the URL of posted image will be copied to your clipboard.
29
+
You can use flags to configure it.
24
30
25
31
```
26
32
$ clip2imgur --html
27
33
$ clip2imgur -n
28
34
```
29
35
30
-
| short | long | description |
31
-
|:--|:--|:--|
32
-
|`-m`|`--markdown`| URL will be copied in the Markdown image format.`[](https://i.imgur.com/x.png)`|
33
-
|`-t`|`--html`| URL will be copied in the HTML image format.`<img src="https://i.imgur.com/x.png">`|
34
-
|`-n`|`--notcopy`| Your image URL will not be copied to your clipboard |
|`-m`|`--markdown`| URL will be copied in the Markdown image format.`[](https://i.imgur.com/x.png)`|
39
+
|`-t`|`--html`| URL will be copied in the HTML image format.`<img src="https://i.imgur.com/x.png">`|
40
+
|`-n`|`--notcopy`| Your image URL will not be copied to your clipboard|
35
41
36
-
Personally I like to include images in Markdown file using the HTML format, which gives more control of the display. If you forget these flags, you always can run `clip2imgur -h` to check the usage.
42
+
Personally I like to include images in Markdown file using the HTML format,
43
+
which gives more control of the display. If you forget these flags, you always
44
+
can run `clip2imgur -h` to check the usage.
37
45
38
46
## Install
39
47
40
-
This package is built using cross-platform Swift with Swift Package Manager (SPM), but it currently only supports macOS. There are three ways to install `clip2imgur`.
48
+
This package is built using cross-platform Swift with Swift Package Manager
49
+
(SPM), but it currently only supports macOS. There are three ways to install
50
+
`clip2imgur`.
41
51
42
52
### Homebrew
43
-
Using `Homebrew` is the recommended and also the easiest way to get `clip2imgur` installed on your mac. If you don't have `Homebrew` installed, you can simply run:
53
+
54
+
Using `Homebrew` is the recommended and also the easiest way to get `clip2imgur`
55
+
installed on your mac. If you don't have `Homebrew` installed, you can simply
You can download the pre-compiled binary from the [Latest Rease](https://github.com/xiaohk/clip2imgur/releases/latest). After extract the binary, you want to create a symbolic link in `/usr/local/bin` to launch `clip2imgur` in your terminal more quickly.
70
+
71
+
You can download the pre-compiled binary from the
72
+
[Latest Rease](https://github.com/xiaohk/clip2imgur/releases/latest). After
73
+
extract the binary, you want to create a symbolic link in `/usr/local/bin` to
74
+
launch `clip2imgur` in your terminal more quickly.
This approach is not recommended, because a function used to refresh your authorization is not open sourced for security reasons. Your compiled version works fine, but may require you to re-authorize `clip2imgur` periodically. If you only want to post images anonymously, then it doesn't really matter.
84
+
85
+
This approach is not recommended, because a function used to refresh your
86
+
authorization is not open sourced for security reasons. Your compiled version
87
+
works fine, but may require you to re-authorize `clip2imgur` periodically. If
88
+
you only want to post images anonymously, then it doesn't really matter.
68
89
69
90
To build `clip2imgur`, you need macOS 10.10 or later and Swift 3.0 or above.
0 commit comments