@giicha/joplin-plugin-checkbox-sum 0.0.0-stage → 1.0.6
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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 giicha
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# Checkbox Sum Calculator (Joplin Plugin)
|
|
4
|
+
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
An automated, real-time plugin for **Joplin** that scans your active notes, detects checked (completed) checkboxes, extracts integer numbers from them, and instantly summarizes them in a dedicated sidebar panel.
|
|
8
|
+
|
|
9
|
+
It works natively across **both layouts**: standard Markdown lists and complex visual HTML tables generated by the Rich Text (WYSIWYG) editor.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
* **Instant Dynamic Calculation:** Updates the total sum automatically a couple of seconds after you click a checkbox. No manual triggers required.
|
|
16
|
+
* **Smart Bold-Number Filter:** Explicitly ignores any numbers formatted as **bold text**. This lets you freely write item titles, serial codes, or model IDs containing digits without messing up your math.
|
|
17
|
+
* **Enhanced Details Breakdown:** Lists every counted row with its calculated sum highlighted in **bold**, followed by the formatted row content inside brackets.
|
|
18
|
+
* **Table Column Isolation:** Automatically excludes completely empty structural table columns/cells to keep the Details timeline compact and clear.
|
|
19
|
+
* **Toolbar Visibility Toggle:** Includes a customized plus-square button (`+`) on your main note toolbar to easily show or hide the side panel on demand.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Examples & Rules
|
|
24
|
+
|
|
25
|
+
### Rule: Bypassing Model Names with Numbers
|
|
26
|
+
If a row contains numbers that represent a model name or item count rather than a price, simply format them as **bold** (`**number**` in Markdown or using the `B` tool in the visual editor). The plugin will ignore bold numbers and add only regular numbers to the total sum.
|
|
27
|
+
|
|
28
|
+
#### Example 1: Rich Text HTML Tables
|
|
29
|
+
|
|
30
|
+
| Status | Item Specification | Price |
|
|
31
|
+
| :--- | :--- | :--- |
|
|
32
|
+
| ☑ (Checked) | **Boeing 747 Airplane Model** | 1200 |
|
|
33
|
+
| ☑ (Checked) | **Ergonomic Chair v2 Office** | 350 |
|
|
34
|
+
| ⬜ (Unchecked) | **Monitor 4K UltraHD** | 500 (Ignored) |
|
|
35
|
+
|
|
36
|
+
* **Panel Total:** `1550` (Calculates: 1200 + 350. The bolded `747` and `2` are safely filtered out).
|
|
37
|
+
* **Details List Displayed:**
|
|
38
|
+
* **1200** (Boeing **747** Airplane Model → 1200)
|
|
39
|
+
* **350** (Ergonomic Chair v**2** Office → 350)
|
|
40
|
+
|
|
41
|
+
#### Example 2: Standard Markdown List
|
|
42
|
+
```markdown
|
|
43
|
+
- [x] Bought **3** monitors for 900 USD
|
|
44
|
+
- [x] Paid **1** internet bill: 60 USD
|
|
45
|
+
- [ ] Upcoming order **2026** invoice: 150 USD (Ignored)
|
|
46
|
+
```
|
|
47
|
+
* **Panel Total:** `960` (Calculates: 900 + 60. The bolded counts `3` and `1` are ignored).
|
|
48
|
+
* **Details List Displayed:**
|
|
49
|
+
* **900** (Bought **3** monitors for 900 USD)
|
|
50
|
+
* **60** (Paid **1** internet bill: 60 USD)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## 🛠️ Installation
|
|
54
|
+
|
|
55
|
+
### Manual Installation (.jpl file)
|
|
56
|
+
1. Download the latest compiled extension file from the `publish/` directory of this repository (e.g., `com.giicha.joplin-checkboxes-sum-plugin.jpl`).
|
|
57
|
+
2. Run **Joplin**.
|
|
58
|
+
3. Go to the top menu: **Tools** -> **Options** -> **Plugins**.
|
|
59
|
+
4. Click the gear icon (⚙️) located in the upper right section of the menu and select **Install from file**.
|
|
60
|
+
5. Select the downloaded `.jpl` bundle file and **restart Joplin**.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## Getting Started
|
|
64
|
+
|
|
65
|
+
1. Click the **Plus Square (`+`)** action button on your note toolbar to bring up the *Checkbox Sum* sidebar interface.
|
|
66
|
+
2. Begin checking checkboxes or table rows within your note body.
|
|
67
|
+
3. Check the calculated sum score changes instantly. A helpful disclaimer notice is appended to the bottom layout to remind you about the structural rules.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## 📄 License
|
|
71
|
+
|
|
72
|
+
This repository is distributed under the terms of the **MIT License**. You are free to copy, modify, distribute, or use this extension setup commercially, provided the original author credits remain intact. See the `LICENSE` file for details.
|
|
73
|
+
|
|
74
|
+
<div align="center">
|
|
75
|
+
|
|
76
|
+
## Support the Project
|
|
77
|
+
|
|
78
|
+
If this plugin saves you time and helps you keep track of your calculations, consider supporting its further development! Any contribution is highly appreciated.
|
|
79
|
+
|
|
80
|
+
💵 **USDT (TRC-20):** `TS1x5AR87CipqAqF3bb7sqePBKqRLFEc4Q`
|
|
81
|
+
|
|
82
|
+
🪙 **Bitcoin (BTC):** `bc1qpamcvn5le907jkt5zhhd4c2r783489nts72m8m`
|
|
83
|
+
|
|
84
|
+
💎 **Ethereum (ETH):** `0x354dc4b9cEC4fC05021Cd26734B8cc839390e5af`
|
|
85
|
+
|
|
86
|
+
</div>
|
|
2
87
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/README.md.bak
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Checkbox Sum Calculator (Joplin Plugin)
|
|
2
|
+
|
|
3
|
+
An automated, real-time plugin for **Joplin** that scans your active notes, detects checked (completed) checkboxes, extracts integer numbers from them, and instantly summarizes them in a dedicated sidebar panel.
|
|
4
|
+
|
|
5
|
+
It works natively across **both layouts**: standard Markdown lists and complex visual HTML tables generated by the Rich Text (WYSIWYG) editor.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
* **Instant Dynamic Calculation:** Updates the total sum automatically a couple of seconds after you click a checkbox. No manual triggers required.
|
|
12
|
+
* **Smart Bold-Number Filter:** Explicitly ignores any numbers formatted as **bold text**. This lets you freely write item titles, serial codes, or model IDs containing digits without messing up your math.
|
|
13
|
+
* **Enhanced Details Breakdown:** Lists every counted row with its calculated sum highlighted in **bold**, followed by the formatted row content inside brackets.
|
|
14
|
+
* **Table Column Isolation:** Automatically excludes completely empty structural table columns/cells to keep the Details timeline compact and clear.
|
|
15
|
+
* **Toolbar Visibility Toggle:** Includes a customized plus-square button (`+`) on your main note toolbar to easily show or hide the side panel on demand.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 📊 Live Examples & Formatting Rules
|
|
20
|
+
|
|
21
|
+
### 🛠️ Rule: Bypassing Model Names with Numbers
|
|
22
|
+
If a row contains numbers that represent a model name or item count rather than a price, simply format them as **bold** (`**number**` in Markdown or using the `B` tool in the visual editor). The plugin will ignore bold numbers and add only regular numbers to the total sum.
|
|
23
|
+
|
|
24
|
+
#### Example 1: Rich Text HTML Tables
|
|
25
|
+
|
|
26
|
+
| Status | Item Specification | Price |
|
|
27
|
+
| :--- | :--- | :--- |
|
|
28
|
+
| 🟩 (Checked) | Boeing **747** Airplane Model | 1200 |
|
|
29
|
+
| 🟩 (Checked) | Ergonomic Chair v**2** Office | 350 |
|
|
30
|
+
| ⬜ (Unchecked) | Monitor **4K** UltraHD | 500 (Ignored) |
|
|
31
|
+
|
|
32
|
+
* **Panel Total:** `1550` (Calculates: 1200 + 350. The bolded `747` and `2` are safely filtered out).
|
|
33
|
+
* **Details List Displayed:**
|
|
34
|
+
* **1200** (Boeing **747** Airplane Model → 1200)
|
|
35
|
+
* **350** (Ergonomic Chair v**2** Office → 350)
|
|
36
|
+
|
|
37
|
+
#### Example 2: Standard Markdown List
|
|
38
|
+
```markdown
|
|
39
|
+
- [x] Bought **3** monitors for 900 USD
|
|
40
|
+
- [x] Paid **1** internet bill: 60 USD
|
|
41
|
+
- [ ] Upcoming order **2026** invoice: 150 USD (Ignored)
|
|
42
|
+
```
|
|
43
|
+
* **Panel Total:** `960` (Calculates: 900 + 60. The bolded counts `3` and `1` are ignored).
|
|
44
|
+
* **Details List Displayed:**
|
|
45
|
+
* **900** (Bought **3** monitors for 900 USD)
|
|
46
|
+
* **60** (Paid **1** internet bill: 60 USD)
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🛠️ Installation
|
|
51
|
+
|
|
52
|
+
### Manual Installation (.jpl file)
|
|
53
|
+
1. Download the latest compiled extension file from the `publish/` directory of this repository (e.g., `com.giicha.joplin-checkboxes-sum-plugin.jpl`).
|
|
54
|
+
2. Run **Joplin**.
|
|
55
|
+
3. Go to the top menu: **Tools** -> **Options** -> **Plugins**.
|
|
56
|
+
4. Click the gear icon (⚙️) located in the upper right section of the menu and select **Install from file**.
|
|
57
|
+
5. Select the downloaded `.jpl` bundle file and **restart Joplin**.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 🚀 Getting Started
|
|
62
|
+
|
|
63
|
+
1. Click the **Plus Square (`+`)** action button on your note toolbar to bring up the *Checkbox Sum* sidebar interface.
|
|
64
|
+
2. Begin checking checkboxes or table rows within your note body.
|
|
65
|
+
3. Check the calculated sum score changes instantly. A helpful disclaimer notice is appended to the bottom layout to remind you about the structural rules.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 📄 License
|
|
70
|
+
|
|
71
|
+
This repository is distributed under the terms of the **MIT License**. You are free to copy, modify, distribute, or use this extension setup commercially, provided the original author credits remain intact. See the `LICENSE` file for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giicha/joplin-plugin-checkbox-sum",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "1.0.6",
|
|
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
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/giicha/joplin-checkboxes-sum-plugin"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"joplin-plugin"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"publish"
|
|
20
|
+
],
|
|
21
|
+
"devDependencies": {
|
|
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
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"id": "com.giicha.joplin-checkboxes-sum-plugin",
|
|
4
|
+
"app_min_version": "3.7",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"name": "Checkbox Sum",
|
|
7
|
+
"description": "Sum up all numbers inside note checkboxes.",
|
|
8
|
+
"author": "giicha",
|
|
9
|
+
"homepage_url": "",
|
|
10
|
+
"repository_url": "https://github.com/giicha/joplin-checkboxes-sum-plugin",
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"categories": [],
|
|
13
|
+
"screenshots": [],
|
|
14
|
+
"icons": {},
|
|
15
|
+
"promo_tile": {},
|
|
16
|
+
"_publish_hash": "sha256:ddb1b90c334541e70a03cba76b5bcbec8c3d63a00d363dc7c676e47f794efe4d",
|
|
17
|
+
"_publish_commit": "master:536c1e566ab047390a233021f088e0a48baaf437"
|
|
18
|
+
}
|