joplin-plugin-cockpit 2.3.0 → 2.4.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
@@ -174,6 +174,10 @@ New note and New to-do create in the notebook the panel is filtered to and open
174
174
 
175
175
  Move, tag and duplicate run Joplin's own dialogs on desktop — the native tag dialog with its autocomplete and common-tags behaviour, Joplin's move dialog, Joplin's duplicateNote. On mobile Cockpit does each itself: a notebook picker it draws, a comma-separated tag field prefilled with the note's current tags (attaching and detaching exactly the difference), and a field-by-field copy into a fresh note in the same notebook.
176
176
 
177
+ ## Works with Whereabouts
178
+
179
+ [Whereabouts](https://github.com/pmslava/joplin-plugin-whereabouts) puts a small notebook chip under the note title. With Cockpit installed the chip also drives the panel: a **left click** points the panel at that notebook, a **double click** reveals the note in the panel — filtering to its notebook if it is not already listed, and pinning it below the list as a read-only row when the active profile cannot show it at all (a plain note in a to-dos-only profile, say). The revealed row is scrolled into view and flashes briefly. Neither plugin needs the other: without Cockpit the chip is silent, without Whereabouts nothing here changes.
180
+
177
181
  ## Overview notes
178
182
 
179
183
  Give a profile the id of a note and Cockpit keeps that note filled with the profile's list as Markdown — a heading per group, each to-do a checkbox linked back to itself — so the plan is readable in any Joplin client, including ones that cannot show the panel.
@@ -240,6 +244,15 @@ Android can restart the panel's webview under load, so Cockpit keeps the scroll
240
244
 
241
245
  Desktop-only: Ctrl/Shift multi-select and the batch actions that follow from it, double-click to open in a new window, custom panel CSS, and the note-toolbar button.
242
246
 
247
+ ## Commands for other plugins
248
+
249
+ Cockpit registers two commands with no menu item of their own, for other plugins (or the command palette) to call. Both take a plain id string, ignore an id that no longer resolves, and never throw back at the caller.
250
+
251
+ | Command | Argument | What it does |
252
+ | --- | --- | --- |
253
+ | `cockpit.filterByNotebook` | a notebook id; `""` or no argument | Points the panel at that notebook, exactly as picking it in the notebook dropdown does. `""` (or no argument) clears the filter back to all notebooks. An unknown id is ignored rather than treated as a clear. The saved profile is not changed. Works on desktop and mobile. |
254
+ | `cockpit.revealNote` | a note id | Shows that note in the panel: a hidden panel is shown first, then the note is shown where it already is, or the filter switches to its notebook and the typed search is cleared, or — when the active profile cannot list it at all — it is pinned below the list as a read-only "Revealed" row. The revealed row is scrolled into view and flashed. The pin goes when you switch profile, change the notebook, commit a search, reveal something else or open the row. **Desktop only**: on mobile the panel is a tab in Joplin's own plugin-panel screen, which is yours to open and close, so a reveal there does nothing. |
255
+
243
256
  ## Build from source
244
257
 
245
258
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-cockpit",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "A tasks-and-notes command center panel: due dates with drag and drop and a calendar picker, checkbox progress rings, notebook and search filters, view profiles, and notebook management - on desktop and mobile.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,7 +7,7 @@
7
7
  "desktop",
8
8
  "mobile"
9
9
  ],
10
- "version": "2.3.0",
10
+ "version": "2.4.0",
11
11
  "name": "Cockpit",
12
12
  "description": "A tasks-and-notes command center panel: due dates with drag and drop and a calendar picker, checkbox progress rings, notebook and search filters, view profiles, and notebook management - on desktop and mobile.",
13
13
  "author": "pmslava",
@@ -43,6 +43,6 @@
43
43
  "label": "The alarm picker: ISO date, 24-hour time, a Monday-first calendar, and quick shortcuts"
44
44
  }
45
45
  ],
46
- "_publish_hash": "sha256:57c396349402f53bbcd287f9357af0cdd669b6105e75f870234cacbf01636251",
47
- "_publish_commit": "master:af90ef4455b14a5239b0dbb954573b9c9948bcad"
46
+ "_publish_hash": "sha256:34b95ad880fc4a6e277834f48b7fe911d1628d724cd5fc88374f2fc7a0ebf1a5",
47
+ "_publish_commit": "master:369a33db2bdc5bad9137a8b733f568ab4b582255"
48
48
  }