joplin-plugin-codeblock-autocomplete 1.2.5 → 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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
# Codeblock Autocomplete
|
|
5
5
|
|
|
6
|
-
Provides auto-complete when creating fenced code blocks, plus a few other utilities:
|
|
6
|
+
Provides auto-complete when creating fenced code blocks by typing backticks/tildes in the markdown editor, plus a few other utilities:
|
|
7
7
|
|
|
8
8
|
- Copy button for code blocks in the markdown editor
|
|
9
|
-
- Toolbar button to insert new code block
|
|
9
|
+
- Toolbar button/Editor command to insert new code block or wrap existing text in a code block
|
|
10
10
|
|
|
11
11
|
Codemirror 6 only, legacy editor is not supported.
|
|
12
12
|
|
|
@@ -14,14 +14,28 @@ Codemirror 6 only, legacy editor is not supported.
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
+
### Autocomplete
|
|
18
|
+
|
|
17
19
|
Typing an opening fence (three+ backticks or three+ tildes) will trigger the auto-complete list by default. Selecting a language will complete the code block (adding the language and closing fence).
|
|
18
20
|
|
|
19
21
|
- Specifying a lanauge that's not in the list (and has no matches) will show "Custom language" and will use the specified language as-is.
|
|
20
22
|
|
|
21
|
-
- Supports nested code blocks (when the
|
|
23
|
+
- Supports nested code blocks (when the autocomplete languages dropdown is enabled): enter more than three fence characters will close the block with the same number of fence characters as the opening block.
|
|
22
24
|
|
|
23
25
|
- If language auto-complete is disabled, typing exactly three backticks or tildes immediately inserts the closing fence and leaves the cursor at the end of the opening fence so you can type a language or press Enter.
|
|
24
26
|
|
|
27
|
+
### Insert code block command
|
|
28
|
+
|
|
29
|
+
An insert code block command is available via a formatting toolbar icon, Edit menu entry, and keyboard shortcut (by default CmdOrCtrl + Alt + `).
|
|
30
|
+
|
|
31
|
+
The command supports multiple cursors and selections, and is line-aware (e.g. cursor on line with no selection > invoke command > wraps entire line in code block).
|
|
32
|
+
|
|
33
|
+
### Copy button
|
|
34
|
+
|
|
35
|
+
If the copy widget is enabled, you will see the code fence language rendered as a clickable copy button on the top-right of the code block (when the cursor isn't on the opening fence line).
|
|
36
|
+
|
|
37
|
+
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.
|
|
38
|
+
|
|
25
39
|
## Settings
|
|
26
40
|
|
|
27
41
|
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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-codeblock-autocomplete",
|
|
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
|
|
@@ -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.3.0",
|
|
6
6
|
"platforms": [
|
|
7
7
|
"desktop",
|
|
8
8
|
"mobile"
|
|
9
9
|
],
|
|
10
10
|
"name": "Codeblock Autocomplete",
|
|
11
|
-
"description": "Code block utilities for the markdown editor: auto-completes fenced code, copy button for code blocks, toolbar button to create code blocks",
|
|
11
|
+
"description": "Code block utilities for the markdown editor: auto-completes fenced code, copy button for code blocks, toolbar button/editor command to create 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",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"src": "images/promo.png",
|
|
45
45
|
"label": "Codeblock Autocomplete Promo Tile"
|
|
46
46
|
},
|
|
47
|
-
"_publish_hash": "sha256:
|
|
48
|
-
"_publish_commit": "main:
|
|
47
|
+
"_publish_hash": "sha256:dcca0e55ef3e90220a1b1d907987b4c7a53ae0fde86bd3727e14f34bbb8397ac",
|
|
48
|
+
"_publish_commit": "main:52ea985ac4fa28e5a0fd72e30f7589a3bf8aef85"
|
|
49
49
|
}
|