joplin-plugin-codeblock-autocomplete 1.5.1 → 1.6.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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
> [!note]
|
|
2
2
|
> This plugin was created entirely with AI tools
|
|
3
3
|
|
|
4
|
-
# Codeblock
|
|
4
|
+
# Codeblock Utils
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Codeblock Utils adds tools for working with fenced code blocks in Joplin:
|
|
7
7
|
|
|
8
|
-
-
|
|
8
|
+
- Language autocomplete when typing backticks or tildes in the Markdown editor
|
|
9
|
+
- Copy button for fenced code blocks in the Markdown editor
|
|
9
10
|
- Copy button for fenced code blocks in the Markdown viewer (and Rich Text editor)
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
Codemirror 6 only, legacy editor is not supported.
|
|
11
|
+
- Optional line numbers for fenced code blocks in the Markdown editor and viewer
|
|
12
|
+
- Toolbar button, Edit menu command, and keyboard shortcut to insert, wrap, or unwrap code blocks in the Markdown editor
|
|
13
13
|
|
|
14
14
|

|
|
15
15
|
|
|
@@ -37,6 +37,10 @@ If the copy widget is enabled, you will see the code fence language rendered as
|
|
|
37
37
|
|
|
38
38
|
Clicking the copy button will copy the code block contents to your clipboard. If the code fence doesn't have a language specified, it will display a generic "Copy" label instead of the language.
|
|
39
39
|
|
|
40
|
+
### Markdown editor line numbers
|
|
41
|
+
|
|
42
|
+
If line numbers are enabled, each line inside a fenced code block in the Markdown editor is numbered, starting from 1 on the line after the opening fence. The fence lines are shifted to stay aligned with the code but are not numbered.
|
|
43
|
+
|
|
40
44
|
### Markdown viewer copy button
|
|
41
45
|
|
|
42
46
|
The Markdown viewer has a separate copy-widget setting. When enabled, hovering over a rendered fenced code block shows an icon-only copy button in its top-right corner. The button remains visible on touch devices and can also be reached with the keyboard.
|
|
@@ -48,12 +52,20 @@ Clicking the button copies the fenced code contents and displays a success toast
|
|
|
48
52
|
>
|
|
49
53
|
> It technically works in the mobile (prosemirror) rich text editor as well, however, the prosemirror editor places its own "edit" button on the top right, so the two buttons overlap.
|
|
50
54
|
|
|
55
|
+
### Markdown viewer line numbers
|
|
56
|
+
|
|
57
|
+
Enable the viewer line-number setting to number each logical line of fenced code, starting from 1 for each block. Highlighting is preserved, and copying code excludes the numbers. This setting is independent of editor line numbers and viewer copy buttons. Diagram blocks are not numbered.
|
|
58
|
+
|
|
51
59
|
## Settings
|
|
52
60
|
|
|
53
61
|
Enable language auto-complete - Toggle the language dropdown for code fences. When disabled, typing exactly three backticks or tildes inserts a closing fence immediately without opening the dropdown.
|
|
54
62
|
|
|
55
|
-
Autocomplete languages - Comma-separated list of language identifiers to show in the autocomplete menu.
|
|
56
|
-
|
|
57
63
|
Enable Markdown editor copy widget - Show a copy button on fenced code blocks in the Markdown editor and hide the opening-fence language text when the cursor is not on that line.
|
|
58
64
|
|
|
65
|
+
Show line numbers in Markdown editor code blocks - Number the lines inside fenced code blocks in the Markdown editor.
|
|
66
|
+
|
|
59
67
|
Enable Markdown viewer copy widget - Show a copy button when hovering over fenced code blocks in the Markdown viewer.
|
|
68
|
+
|
|
69
|
+
Show line numbers in Markdown viewer code blocks - Number the lines inside fenced code blocks in the Markdown viewer.
|
|
70
|
+
|
|
71
|
+
Autocomplete languages - Comma-separated list of language identifiers to show in the autocomplete menu.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-codeblock-autocomplete",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.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
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"id": "com.bwat47.codeblock-autocomplete",
|
|
4
4
|
"app_min_version": "3.3",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.6.0",
|
|
6
6
|
"platforms": [
|
|
7
7
|
"desktop",
|
|
8
8
|
"mobile"
|
|
9
9
|
],
|
|
10
|
-
"name": "Codeblock
|
|
11
|
-
"description": "Code block utilities for the Markdown editor and viewer:
|
|
10
|
+
"name": "Codeblock Utils",
|
|
11
|
+
"description": "Code block utilities for the Markdown editor and viewer: language autocomplete, copy buttons, line numbers, and a command to insert or toggle code blocks",
|
|
12
12
|
"author": "bwat47",
|
|
13
13
|
"homepage_url": "https://github.com/bwat47/joplin-codeblock-autocomplete",
|
|
14
14
|
"repository_url": "https://github.com/bwat47/joplin-codeblock-autocomplete",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"promo_tile": {
|
|
53
53
|
"src": "images/promo.png",
|
|
54
|
-
"label": "Codeblock
|
|
54
|
+
"label": "Codeblock Utils Promo Tile"
|
|
55
55
|
},
|
|
56
|
-
"_publish_hash": "sha256:
|
|
57
|
-
"_publish_commit": "main:
|
|
56
|
+
"_publish_hash": "sha256:7019157752bd88ba6fcf15acede1a970aa49108adf3582eed3e7c15d765d3c1b",
|
|
57
|
+
"_publish_commit": "main:90e131c330c7349edaa72ae463da9c7e360840db"
|
|
58
58
|
}
|