joplin-plugin-codeblock-autocomplete 1.0.5 → 1.2.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,7 +3,10 @@
3
3
 
4
4
  # Codeblock Autocomplete
5
5
 
6
- Provides auto-complete when creating fenced code blocks.
6
+ Provides auto-complete when creating fenced code blocks, plus a few other utilities:
7
+
8
+ - Copy button for code blocks in the markdown editor
9
+ - Toolbar button to insert new code block
7
10
 
8
11
  Codemirror 6 only, legacy editor is not supported.
9
12
 
@@ -11,12 +14,18 @@ Codemirror 6 only, legacy editor is not supported.
11
14
 
12
15
  ## Usage
13
16
 
14
- Typing an opening fence (three+ backticks or three+ tildes) will trigger the auto-complete list. Selecting a language will complete the code block (adding the language and closing fence).
17
+ 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).
15
18
 
16
19
  - 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.
17
20
 
18
- - Supports nested code blocks (enter more than three fence characters will close the block with the same number of fence characters as the opening block).
21
+ - Supports nested code blocks (when the language 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
+
23
+ - 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.
19
24
 
20
25
  ## Settings
21
26
 
27
+ 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.
28
+
22
29
  Autocomplete languages - Comma-separated list of language identifiers to show in the autocomplete menu.
30
+
31
+ Enable code block 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-codeblock-autocomplete",
3
- "version": "1.0.5",
3
+ "version": "1.2.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",
@@ -28,7 +28,7 @@
28
28
  "@typescript-eslint/eslint-plugin": "^8.46.3",
29
29
  "@typescript-eslint/parser": "^8.46.3",
30
30
  "chalk": "^4.1.0",
31
- "copy-webpack-plugin": "^11.0.0",
31
+ "copy-webpack-plugin": "^14.0.0",
32
32
  "eslint": "^9.39.1",
33
33
  "eslint-config-prettier": "^10.1.8",
34
34
  "eslint-plugin-import": "^2.32.0",
@@ -36,10 +36,10 @@
36
36
  "fs-extra": "^10.1.0",
37
37
  "glob": "^8.0.3",
38
38
  "prettier": "^3.6.2",
39
- "tar": "^6.1.11",
39
+ "tar": "^7.5.12",
40
40
  "ts-loader": "^9.3.1",
41
41
  "typescript": "^5.9.3",
42
- "webpack": "^5.102.1",
42
+ "webpack": "^5.105.4",
43
43
  "webpack-cli": "^6.0.1"
44
44
  }
45
45
  }
@@ -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.0.5",
5
+ "version": "1.2.0",
6
6
  "platforms": [
7
7
  "desktop",
8
8
  "mobile"
9
9
  ],
10
10
  "name": "Codeblock Autocomplete",
11
- "description": "Enables CM6 code block autocomplete to assist with creating fenced code blocks",
11
+ "description": "Code block utilities for the markdown editor: auto-completes fenced code, copy button for code blocks, toolbar button 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",
@@ -19,7 +19,8 @@
19
19
  "fenced code block",
20
20
  "code fence",
21
21
  "fence",
22
- "code fence autocomplete"
22
+ "code fence autocomplete",
23
+ "copy"
23
24
  ],
24
25
  "categories": [
25
26
  "productivity",
@@ -43,6 +44,6 @@
43
44
  "src": "images/promo.png",
44
45
  "label": "Codeblock Autocomplete Promo Tile"
45
46
  },
46
- "_publish_hash": "sha256:0cddd099e925cd0ffa4369df29b236bebd06e307dbf880500f37ed55983be8c3",
47
- "_publish_commit": "main:f4ee3c1a18b7531082ce8dd973d1c3f4dc78836b"
47
+ "_publish_hash": "sha256:7c2f8f74c63e75b19c61a860bf633aefadc5b8ec27101203471b4efd3f109a54",
48
+ "_publish_commit": "main:faaec32a1fc2d5e9b69a38868bc6603c78a2d3d2"
48
49
  }