joplin-plugin-collapsible-blocks 1.0.3 → 1.1.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
@@ -1,10 +1,10 @@
1
- # Joplin Plugin - Collapsible block
1
+ # Joplin Plugin - Collapsible blocks
2
2
 
3
3
  This Joplin plugin allows you to create collapsible blocks with a title and extendable body. The blocks can be nested within each other, remember whether they were left open or closed, and color-coordinate between the editor and webview.
4
4
 
5
5
  Although the blocks this plugin creates are only collapsible in the webview, not the editor, it seems to pair well with the "Extra Markdown Editor Settings" plugin, which does allow for collapsing text in the editor, if "Enable code folding" is enabled in its settings. The collapsible blocks made by this plugin are detected by it as code, and are editor-foldable. If you're nesting collapsible blocks, only the outermost one (in the editor) will be foldable with this method.
6
6
 
7
- **Version**: 1.0.3
7
+ **Version**: 1.1.0
8
8
 
9
9
  ## Installation
10
10
 
@@ -77,7 +77,9 @@ Body
77
77
  ```
78
78
  (for readability, the last way is recommended)
79
79
 
80
- Blocks will remember if you left them opened or closed. They will do so by editing the opener in the editor from :{ to :{:{ when opened, or back to :{ when closed. You may also do this manually.
80
+ Blocks will remember if you left them opened or closed. They will do so by editing the opener in the editor from `:{` to `:{:{` when opened, or back to `:{` when closed. You may also do this manually.
81
+
82
+ If you don't want it to remember if you left a block opened or closed, you can turn this off globally in the plugin settings - or on a per-block basis by doubling the end token, from `}:` to `}:}:`. When you do this, you can still open and close the block in the webview, but they will not save their state in the editor - so the next time the note is loaded, they will be opened or closed again, depending on whether their opening token is `:{:{` or `:{`, respectively. So a block like `:{:{this}:}:` will always be initially open when you open a note, while a block like `:{this}:}:` will always be initially closed when you open a note.
81
83
 
82
84
  When nesting blocks within blocks, they will be color-coded in the editor, and may also be color-coded in the webview. These can both be controlled in the plugin Settings tab.
83
85
 
@@ -129,7 +131,7 @@ be applied if "Do Webview Colors" is enabled in the plugin settings */
129
131
  ```
130
132
 
131
133
  ## Settings
132
- There is a settings page for the plugin in the Joplin options. There, you can customize the start and end tokens away from the default `:{` and `}:`, or enable/disable the color coding in the webview and editor.
134
+ There is a settings page for the plugin in the Joplin options. There, you can customize the start and end tokens away from the default `:{` and `}:`, or enable/disable the color coding in the webview and editor. You can also disable the plugin's ability to remember if a collapsible block was last left open or closed in the webview, relying solely on how you define it in the editor.
133
135
 
134
136
  ## Notes
135
137
 
@@ -137,4 +139,8 @@ There is a settings page for the plugin in the Joplin options. There, you can cu
137
139
 
138
140
  ## Acknowledgement
139
141
 
140
- Thanks to the creator of the [Joplin Spoilers](https://github.com/martinkorelic/joplin-plugin-spoilers) plugin, whose code helped me build this plugin.
142
+ Thanks to the creator of the [Joplin Spoilers](https://github.com/martinkorelic/joplin-plugin-spoilers) plugin, whose code helped me build this plugin.
143
+
144
+ ## Other plugins
145
+
146
+ See my other plugin, [Click-to-Copy Spans](https://github.com/ntczkjfg/joplin-plugin-click-to-copy-span)! Easily lets you create spans of text that, when clicked, are automatically copied to your clipboard for fast and easy pasting.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-collapsible-blocks",
3
- "version": "1.0.3",
3
+ "version": "1.1.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",
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 1,
3
3
  "id": "joplin.plugin.collapsible.blocks",
4
4
  "app_min_version": "3.2",
5
- "version": "1.0.3",
5
+ "version": "1.1.0",
6
6
  "name": "Collapsible blocks",
7
7
  "description": "Create collapsible blocks with title and extendable body.",
8
8
  "author": "ntczkjfg",
@@ -11,14 +11,19 @@
11
11
  "keywords": [
12
12
  "joplin",
13
13
  "plugin",
14
+ "collapse",
14
15
  "collapsible",
16
+ "collapsing",
15
17
  "blocks",
16
- "details"
18
+ "details",
19
+ "fold",
20
+ "foldable",
21
+ "folding"
17
22
  ],
18
23
  "platforms": [
19
24
  "desktop",
20
25
  "mobile"
21
26
  ],
22
- "_publish_hash": "sha256:edf2083e7ae13a40af9423df69701736868d34ca4635990e2a33bd51ebe9ff5d",
23
- "_publish_commit": "master:842dd3a0299e7aabd9d33421c9133ea6327d40fe"
27
+ "_publish_hash": "sha256:ac51faca341b542b7e392e1836100d4782fc7da6679287b92d61deebfd0a6209",
28
+ "_publish_commit": "master:3e839324698256c44f70f6c574f6af2d26787183"
24
29
  }