joplin-plugin-codemirror6-theme 1.0.3 → 2.0.2

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
@@ -31,6 +31,20 @@ Quick keyboard shortcuts for toggling heading levels:
31
31
  - Press again on the same level to remove them
32
32
  - Works on the current line where your cursor is positioned
33
33
 
34
+ ### Inline Math Shortcuts
35
+ Quick keyboard shortcut for adding inline math notation:
36
+ - `Ctrl+$` - Toggle `$` symbols around selected text for inline math (LaTeX)
37
+ - Select any text and press `Ctrl+$` to wrap it with `$...$`
38
+ - Press again to remove the math notation
39
+
40
+ ### Table Editing Tools
41
+ Comprehensive table editing features accessible from the editor:
42
+ - `Ctrl+Shift+F` - Format table
43
+ - `Ctrl+Enter` - Add row below
44
+ - `Ctrl+Tab` - Add column right
45
+ - Access more table operations from the toolbar (right-click > Table Editing Tools)
46
+ - Tools include row/column insertion, deletion, moving, and text alignment
47
+
34
48
  ## Configuration
35
49
 
36
50
  All features can be toggled in Settings → CodeMirror 6 Theme:
@@ -46,6 +60,13 @@ All features can be toggled in Settings → CodeMirror 6 Theme:
46
60
  - Inline code color (hex format, default: `#d63200`)
47
61
  - Link color (hex format, default: `#d63200`)
48
62
 
63
+ **Keyboard Shortcuts** (可在设置中自定义)
64
+ - Heading shortcuts: `Ctrl+1` through `Ctrl+6`
65
+ - Math inline notation: `Ctrl+$` (default)
66
+ - Table formatting: `Ctrl+Shift+F`
67
+ - Table row insertion: `Ctrl+Enter`
68
+ - Table column insertion: `Ctrl+Tab`
69
+
49
70
  ## Installation
50
71
 
51
72
  1. Download the latest `.jpl` file from releases
@@ -54,6 +75,27 @@ All features can be toggled in Settings → CodeMirror 6 Theme:
54
75
  4. Choose the downloaded `.jpl` file
55
76
  5. Restart Joplin
56
77
 
78
+ ## Quick Start
79
+
80
+ ### Using Heading Shortcuts
81
+ 1. Position cursor on any line
82
+ 2. Press `Ctrl+1` to `Ctrl+6` to toggle heading levels
83
+ 3. Press the same shortcut again to remove the heading
84
+
85
+ ### Using Math Notation
86
+ 1. Select any text
87
+ 2. Press `Ctrl+$` to wrap it with `$` symbols
88
+ 3. Press `Ctrl+$` again to remove the notation
89
+
90
+ ### Using Table Editing Tools
91
+ 1. Right-click in the editor → "📋 Table Editing Tools..."
92
+ 2. A toolbar appears at the bottom with table operations
93
+ 3. Click the ✕ button to close the toolbar
94
+ 4. Use keyboard shortcuts:
95
+ - `Ctrl+Shift+F` - Format table
96
+ - `Ctrl+Enter` - Add row below
97
+ - `Ctrl+Tab` - Add column right
98
+
57
99
  ## Development
58
100
 
59
101
  Build the plugin:
@@ -66,6 +108,12 @@ The plugin package will be generated in the `publish/` directory.
66
108
 
67
109
  For more development information, see [GENERATOR_DOC.md](./GENERATOR_DOC.md)
68
110
 
111
+ ## TODO
112
+
113
+ - 把指定笔记的.md源文件和该笔记的附件导出到同一个指定目录,确保附件的文件内超链接也被同步更新,以便于在外部编辑器直接查看。支持多选笔记,多选笔记时将有两种行为:所有笔记源文件和附件都导入同一目录\以文件夹为单位导出各笔记,保留Front Matter,这个行为将存在一个可配置选项,可以在插件设置中更改。
114
+
115
+ - 【无法实现】列表的行溢出缩进应与当前层级缩进一致,并提供配置项
116
+
69
117
  ## License
70
118
 
71
- MIT
119
+ MIT
package/package.json CHANGED
@@ -1,36 +1,44 @@
1
- {
2
- "name": "joplin-plugin-codemirror6-theme",
3
- "version": "1.0.3",
4
- "scripts": {
5
- "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
6
- "prepare": "npm run dist",
7
- "updateVersion": "webpack --env joplin-plugin-config=updateVersion",
8
- "update": "npm install -g generator-joplin && yo joplin --node-package-manager npm --update --force"
9
- },
10
- "license": "MIT",
11
- "keywords": [
12
- "joplin-plugin"
13
- ],
14
- "files": [
15
- "publish"
16
- ],
17
- "devDependencies": {
18
- "@codemirror/language": "^6.11.3",
19
- "@codemirror/state": "^6.5.2",
20
- "@codemirror/view": "^6.38.8",
21
- "@lezer/highlight": "^1.2.3",
22
- "@types/node": "^18.7.13",
23
- "chalk": "^4.1.0",
24
- "copy-webpack-plugin": "^11.0.0",
25
- "fs-extra": "^10.1.0",
26
- "glob": "^8.0.3",
27
- "tar": "^6.1.11",
28
- "ts-loader": "^9.3.1",
29
- "typescript": "^4.8.2",
30
- "webpack": "^5.74.0",
31
- "webpack-cli": "^4.10.0"
32
- },
33
- "dependencies": {
34
- "markdown-it-github-alerts": "^1.0.0"
35
- }
36
- }
1
+ {
2
+ "name": "joplin-plugin-codemirror6-theme",
3
+ "version": "2.0.2",
4
+ "description": "Enhanced CodeMirror 6 theme with styling, keyboard shortcuts, and table editing tools for Joplin",
5
+ "scripts": {
6
+ "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
7
+ "prepare": "npm run dist",
8
+ "updateVersion": "webpack --env joplin-plugin-config=updateVersion",
9
+ "update": "npm install -g generator-joplin && yo joplin --node-package-manager npm --update --force"
10
+ },
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "joplin-plugin",
14
+ "theme",
15
+ "codemirror6",
16
+ "keyboard-shortcuts",
17
+ "table-editing",
18
+ "markdown"
19
+ ],
20
+ "files": [
21
+ "publish"
22
+ ],
23
+ "devDependencies": {
24
+ "@codemirror/language": "^6.11.3",
25
+ "@codemirror/state": "^6.5.2",
26
+ "@codemirror/view": "^6.38.8",
27
+ "@lezer/highlight": "^1.2.3",
28
+ "@types/node": "^18.7.13",
29
+ "chalk": "^4.1.0",
30
+ "copy-webpack-plugin": "^11.0.0",
31
+ "fs-extra": "^10.1.0",
32
+ "glob": "^8.0.3",
33
+ "tar": "^6.1.11",
34
+ "ts-loader": "^9.3.1",
35
+ "typescript": "^4.8.2",
36
+ "webpack": "^5.74.0",
37
+ "webpack-cli": "^4.10.0"
38
+ },
39
+ "dependencies": {
40
+ "@felisdiligens/md-table-tools": "^0.2.0",
41
+ "markdown-it-github-alerts": "^1.0.0",
42
+ "turndown": "^7.2.2"
43
+ }
44
+ }
@@ -4,7 +4,7 @@
4
4
  "app_min_version": "2.8",
5
5
  "version": "1.0.3",
6
6
  "name": "codemirror6 theme",
7
- "description": "A theme for joplin",
7
+ "description": "Enhanced CodeMirror 6 theme with styling for headings, code, links, GitHub alerts, blockquotes, and table rendering. Includes keyboard shortcuts for heading levels (Ctrl+1-6), inline math notation (Ctrl+$), and comprehensive table editing tools.",
8
8
  "author": "RinChord",
9
9
  "homepage_url": "https://github.com/Rinsutoringu/joplin_codemirror6_theme",
10
10
  "repository_url": "https://github.com/Rinsutoringu/joplin_codemirror6_theme",
@@ -17,6 +17,6 @@
17
17
  "desktop",
18
18
  "mobile"
19
19
  ],
20
- "_publish_hash": "sha256:2bddd131914d9bef46296ef46e394585fa7ca187be1849b5a0f5a32ce3e388f2",
21
- "_publish_commit": "main:91bb360c7f36960d15520e3a21b91efd55ef9547"
20
+ "_publish_hash": "sha256:00ec3835ce12c443edaa1562245efd5a27bacaa8b37725113b43f8a10adaac39",
21
+ "_publish_commit": "main:2b556c5de98fab9fefc7abaea782211c0c10723f"
22
22
  }