joplin-plugin-richtext-tables-helper 1.0.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
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Project Title
|
|
2
|
+
|
|
3
|
+
Joplin Rich Text Editor Tables Keyboard Shortcuts Plugin (RTET)
|
|
4
|
+
|
|
5
|
+
## Author
|
|
6
|
+
|
|
7
|
+
sizer99 at sizer99 dot com
|
|
8
|
+
|
|
9
|
+
## Description / Overview
|
|
10
|
+
|
|
11
|
+
I like markdown, but I use tables in the Joplin Rich Text Editor a lot because
|
|
12
|
+
they do a lot of things that the markdown tables don't, like easier
|
|
13
|
+
navigation, properly aligning things with Japanese characters, etc., easily
|
|
14
|
+
selecting the contents of a whole cell, etc.
|
|
15
|
+
|
|
16
|
+
Unfortunately, there are very few key shortcuts for common things like insert
|
|
17
|
+
row, swap rows, delete row, etc. and all the cool plugins only work on
|
|
18
|
+
Markdown, so I have to mouse to the table toolbar every time, which really
|
|
19
|
+
slows things down. This adds a dozen commands to your `Options` -> `Keyboard Shortcuts`
|
|
20
|
+
that you can set to your own liking.
|
|
21
|
+
|
|
22
|
+
Once you realize you can treat a Table as a mini spreadsheet (really a tiny
|
|
23
|
+
database) there are a ton of things you can use them for.
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
Once you've installed the plugin, you should get a `Tools` -> `Rich Text Editor Table`
|
|
28
|
+
submenu with a dozen things you might want to do with a table.
|
|
29
|
+
*It is not intended you use them from this menu* - that would just be slower
|
|
30
|
+
than using the table toolbar! But by adding them to a menu and giving them
|
|
31
|
+
ridiculous shortcuts like Ctrl-Alt-Shift-F1, Joplin will add them to
|
|
32
|
+
`Options` -> `Keyboard Shortcuts`.
|
|
33
|
+
|
|
34
|
+
There's no point to this plugin if you don't assign the ones you use a lot
|
|
35
|
+
to your own keyboard shortcuts. Once you're in the Keyboard Shortcuts list
|
|
36
|
+
type 'RTET' into the filter box at the top to see them all. You can clear
|
|
37
|
+
the ones you don't care about if you want.
|
|
38
|
+
|
|
39
|
+
## Commands
|
|
40
|
+
|
|
41
|
+
The commands can be grouped into Table, Row, Column, and Cell.
|
|
42
|
+
|
|
43
|
+
Most of them do what you'd expect from the name, I'll add comments where
|
|
44
|
+
there are any other gotchas.
|
|
45
|
+
|
|
46
|
+
**Table**
|
|
47
|
+
Name | Comments
|
|
48
|
+
--- | ---
|
|
49
|
+
Add 2x2 Table | Adds a blank 2x2 Table inline. Then you can add Rows and Cols.
|
|
50
|
+
|
|
51
|
+
**Row**
|
|
52
|
+
Name | Comments
|
|
53
|
+
--- | ---
|
|
54
|
+
Insert Table Row Above | Blank row
|
|
55
|
+
Insert Table Row Below | Blank row
|
|
56
|
+
Cut Current Table Row | Cuts to the Rich Text Editor's clipboard, which is not shared with Joplin's clipboard. Also works as Delete!
|
|
57
|
+
Paste Cut Table Row Above This Row | Must be one cut with 'Cut Current Table Row'
|
|
58
|
+
Swap Table Row Below | Quickly swap two rows
|
|
59
|
+
|
|
60
|
+
**Column**
|
|
61
|
+
Name | Comments
|
|
62
|
+
--- | ---
|
|
63
|
+
Insert Table Column Left | Blank column
|
|
64
|
+
Insert Table Column Right | Blank column
|
|
65
|
+
Cut Current Table Column | | Cuts to the Rich Text Editor's clipboard, which is not shared with Joplin's clipboard. Also works as Delete!
|
|
66
|
+
Paste Cut Table Column Left of This Column | Must be one cut with 'Cut Current Table Column'
|
|
67
|
+
Swap Table Column Right | Quickly swap two columns
|
|
68
|
+
|
|
69
|
+
**Cell**
|
|
70
|
+
|
|
71
|
+
You may think this is overkill, but a lot of my work with Tables is Japanese
|
|
72
|
+
translation, and being able to copy / paste a cell with a single keystroke is
|
|
73
|
+
a huge time-saver. Once you realize you can treat a Table as a mini spreadsheet
|
|
74
|
+
(really a tiny database) there are a ton of things you can use them for. So
|
|
75
|
+
here's the whole cut/copy/paste trinity!
|
|
76
|
+
|
|
77
|
+
Name | Comments
|
|
78
|
+
--- | ---
|
|
79
|
+
Select Current Table Cell | Select the whole cell but don't do anything else
|
|
80
|
+
Select Current Table Cell & Copy Text | Copy the cell text to system clipboard
|
|
81
|
+
Select Current Table Cell & Cut Text | Cut the cell text to system clipboard
|
|
82
|
+
Select Current Table Cell & Paste Text | Replace the cell text with system clipboard text
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## Limitations
|
|
86
|
+
|
|
87
|
+
Joplin keeps the Rich Text Editor (tinyMCE) at arms length with lots of
|
|
88
|
+
barbed wire and a bleak no-mans' land between them. So what we can do to
|
|
89
|
+
the Rich Text Editor Tables is limited to what's in this:
|
|
90
|
+
https://www.tiny.cloud/docs/tinymce/latest/editor-command-identifiers/#core-table-commands
|
|
91
|
+
You can see I've made most of this available, and did the Cell Select
|
|
92
|
+
stuff with some hax. So most other features you might want (like why
|
|
93
|
+
is there no 'Swap With Row Above'?) are because of this. I can't just
|
|
94
|
+
move the cursor around tinyMCE arbitrarily!
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
MIT @ Ron Dippold 2026
|
|
99
|
+
|
|
100
|
+
## Versions
|
|
101
|
+
|
|
102
|
+
2026 Jun 28 - 1.0.0 - First version, make a codeberg repository, attempt to publish.
|
|
103
|
+
|
|
104
|
+
## TODO
|
|
105
|
+
|
|
106
|
+
- Nothing yet
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "joplin-plugin-richtext-tables-helper",
|
|
3
|
+
"version": "1.0.0",
|
|
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
|
+
"@types/node": "^18.7.13",
|
|
19
|
+
"chalk": "^4.1.0",
|
|
20
|
+
"copy-webpack-plugin": "^14.0.0",
|
|
21
|
+
"fs-extra": "^10.1.0",
|
|
22
|
+
"glob": "^8.0.3",
|
|
23
|
+
"tar": "^7.5.17",
|
|
24
|
+
"ts-loader": "^9.3.1",
|
|
25
|
+
"typescript": "^4.8.2",
|
|
26
|
+
"webpack": "^5.74.0",
|
|
27
|
+
"webpack-cli": "^4.10.0"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"id": "org.joplinapp.plugins.joplinRTETablesKBPlugin",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"app_min_version": "3.6.0",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"name": "Rich Text Editor Tables Keyboard Shortcuts",
|
|
8
|
+
"description": "Work faster in Rich Text Editor Tables by adding Keyboard Shortcuts for a dozen functions like add row, swap row, select and copy cell, etc.",
|
|
9
|
+
"author": "Ron Dippold",
|
|
10
|
+
"homepage_url": "https://codeberg.org/sizer99/Joplin-Rich-Text-Editor-Tables-Keyboard-Shortcuts-Plugin",
|
|
11
|
+
"repository_url": "https://codeberg.org/sizer99/Joplin-Rich-Text-Editor-Tables-Keyboard-Shortcuts-Plugin",
|
|
12
|
+
"platforms": [
|
|
13
|
+
"desktop"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"joplin-plugin",
|
|
17
|
+
"RichText",
|
|
18
|
+
"Tables",
|
|
19
|
+
"KeyboardShortcuts"
|
|
20
|
+
],
|
|
21
|
+
"categories": [
|
|
22
|
+
"editor",
|
|
23
|
+
"productivity"
|
|
24
|
+
],
|
|
25
|
+
"promo_tile": {},
|
|
26
|
+
"screenshots": [
|
|
27
|
+
{
|
|
28
|
+
"src": "https://codeberg.org/sizer99/Joplin-Rich-Text-Editor-Tables-Keyboard-Shortcuts-Plugin/src/branch/main/pix/screenshot_1.png",
|
|
29
|
+
"label": "Screenshot: Options -> Keyboard Shortcuts 'RTET'"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"src": "https://codeberg.org/sizer99/Joplin-Rich-Text-Editor-Tables-Keyboard-Shortcuts-Plugin/src/branch/main/pix/screenshot_2.png",
|
|
33
|
+
"label": "Screenshot: Tools -> Rich Text Editor Table submenu"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"icons": {
|
|
37
|
+
"64": "pix/icon_64.png",
|
|
38
|
+
"128": "pix/icon_128.png",
|
|
39
|
+
"256": "pix/icon_256.png"
|
|
40
|
+
},
|
|
41
|
+
"_publish_hash": "sha256:7321822b29ac851ce09700b816dd752d781c05d2496939900c6ca5677ddc70ce",
|
|
42
|
+
"_publish_commit": "main:d29ad2c4a770f75030f92fc368b5ceab064c0657"
|
|
43
|
+
}
|