joplin-plugin-click-to-copy 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This Joplin plugin allows you to create inline click-to-copy text spans.
|
|
4
4
|
|
|
5
|
-
**Version**: 1.
|
|
5
|
+
**Version**: 1.3.0
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -13,8 +13,8 @@ This Joplin plugin allows you to create inline click-to-copy text spans.
|
|
|
13
13
|
### Uninstall
|
|
14
14
|
|
|
15
15
|
- Open Joplin and navigate to `Tools > Options > Plugins`
|
|
16
|
-
-
|
|
17
|
-
- Press `Delete` to remove the plugin or
|
|
16
|
+
- Find the `Click to copy` plugin
|
|
17
|
+
- Press `Delete` to remove the plugin, or click the toggle to disable it
|
|
18
18
|
- Restart Joplin
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
@@ -36,13 +36,37 @@ You can additionally make the text within the span render as inline code by wrap
|
|
|
36
36
|
[[`This will render as inline code, but still be click-to-copy`]]
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
If you double the start token, then the span will render its text as dots, to obfuscate things like passwords. If you double the end token, then the plugin will attempt to clear your clipboard after 15 seconds. When a span is rendered as a password, right clicking it will toggle between displaying dots and the actual text.
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
[[[[`This will show up as dots, and be erased from the clipboard 15 seconds after being clicked`]]]]
|
|
43
|
+
```
|
|
44
|
+
|
|
39
45
|
## Screenshots
|
|
40
46
|
|
|
41
|
-
Use it for things you may frequently want to copy/paste
|
|
47
|
+
Use it for things you may frequently want to copy/paste:
|
|
42
48
|
|
|
43
49
|

|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
With password obfuscation and forgetting:
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
With editor view enabled (default):
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
## Settings
|
|
60
|
+
There is a settings page for the plugin in the Joplin options. There, you can:
|
|
61
|
+
* Customize the start and end tokens away from the default `[[` and `]]`
|
|
62
|
+
* Disable having the spans appear in the editor if you'd prefer only the raw text there
|
|
63
|
+
* Choose if the start and end tokens are shown or hidden, when displaying spans in the editor is enabled
|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
## Advanced
|
|
68
|
+
|
|
69
|
+
### Custom styles
|
|
46
70
|
|
|
47
71
|
If you would like to style the collapsible blocks to your preference, use the following in your `userstyle.css` file, which can be accessed in `Joplin` → `Options` → `Appearance` → `Show Advanced Settings` → `Custom stylesheet for rendered Markdown`:
|
|
48
72
|
|
|
@@ -51,10 +75,12 @@ If you would like to style the collapsible blocks to your preference, use the fo
|
|
|
51
75
|
.ctc {
|
|
52
76
|
|
|
53
77
|
}
|
|
54
|
-
```
|
|
55
78
|
|
|
56
|
-
|
|
57
|
-
|
|
79
|
+
/* Styling of the ctc-markdown, only when displaying ctc-spans in the editor, and not hiding markdown */
|
|
80
|
+
.ctc-markdown {
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
```
|
|
58
84
|
|
|
59
85
|
## Notes
|
|
60
86
|
|
|
@@ -62,4 +88,8 @@ There is a settings page for the plugin in the Joplin options. There, you can cu
|
|
|
62
88
|
|
|
63
89
|
## Acknowledgement
|
|
64
90
|
|
|
65
|
-
Thanks to the creator of the [Joplin Spoilers](https://github.com/martinkorelic/joplin-plugin-spoilers) plugin, whose code helped me build this plugin.
|
|
91
|
+
Thanks to the creator of the [Joplin Spoilers](https://github.com/martinkorelic/joplin-plugin-spoilers) plugin, whose code helped me build this plugin.
|
|
92
|
+
|
|
93
|
+
## Other plugins
|
|
94
|
+
|
|
95
|
+
See my other plugin, [Collapsible blocks](https://github.com/ntczkjfg/joplin-plugin-collapsible-block)! Easily lets you create collapsible/foldable blocks that can hide their content from view.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-click-to-copy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
|
|
6
6
|
"prepare": "npm run dist",
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 1,
|
|
3
|
-
"id": "joplin
|
|
3
|
+
"id": "com.joplin.click.to.copy",
|
|
4
4
|
"app_min_version": "3.2",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.3.0",
|
|
6
6
|
"name": "Click to copy",
|
|
7
7
|
"description": "Create text spans which are click-to-copy.",
|
|
8
8
|
"author": "ntczkjfg",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"desktop",
|
|
21
21
|
"mobile"
|
|
22
22
|
],
|
|
23
|
-
"_publish_hash": "sha256:
|
|
24
|
-
"_publish_commit": "
|
|
23
|
+
"_publish_hash": "sha256:b1d7a8e3e67a4ca5210eac2c3ae1afc7c5a6aedc09dfbe619f609d5e264a5883",
|
|
24
|
+
"_publish_commit": ""
|
|
25
25
|
}
|
|
Binary file
|