joplin-plugin-cockpit 2.2.1 → 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
|
@@ -77,7 +77,7 @@ Regular notes appear in their own "Notes" group, before or after the to-dos, per
|
|
|
77
77
|
|
|
78
78
|
## Due dates
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Drag a to-do onto a calendar day, a week-planner day or a list heading to reschedule it. Onto Today or Tomorrow it becomes due that day; onto a period group — This or Next Week, Month or Year — it becomes due on the **first** day of that group, the earliest day it names rather than its deadline; onto No Due Date its alarm is cleared. Drop into the gap *between* two rows and it lands midway between its new neighbours; drop several and the interval is divided into equal shares in the order you dragged them. That works at a group's edges too, including inside Overdue. While you are dragging, holding the pointer near the top or bottom edge of the list scrolls it, so a heading or a day that is off screen can be reached without letting go. A to-do dragged onto a bare day gets the day start time, 09:00 unless you change it. On Android the same thing is done with a finger: hold a to-do for half a second for its menu, keep holding and move it up or down to drag it — an insertion line follows you between the rows, a banner says where it will land, and letting go outside the list cancels.
|
|
81
81
|
|
|
82
82
|
For an exact time there is the picker: a YYYY-MM-DD date field, an HH:MM time field, and a month grid starting on the profile's first day of the week, with scrolling hour and minute columns pinned flush with it. Two rows of buttons sit above. The first is absolute — Today, Tomorrow, Weekends (the nearest Saturday), Next Monday. The second accumulates as you press it: +hour, +day, +week, +month(day) for the same weekday next month, +month(date) for the same day-of-month, clamped.
|
|
83
83
|
|
|
@@ -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.
|
|
@@ -227,7 +231,6 @@ Cockpit's settings live in Joplin's own Settings › Plugins › Cockpit.
|
|
|
227
231
|
- **Excluded notebooks** — see [Search and filtering](#search-and-filtering).
|
|
228
232
|
- **Theme, completed-to-do style, font size, circle size and the six custom colours** — see [Appearance](#appearance).
|
|
229
233
|
- **Show the Cockpit button in the note toolbar** — a gauge button in the note toolbar toggles the panel, and the same command sits in Tools › Cockpit alongside this switch and Set Panel CSS. Joplin cannot add or remove a toolbar button while running, so turning it on or off applies after a restart, and Cockpit says so.
|
|
230
|
-
- **Gesture trace** — a default-off, mobile-only diagnostic that replaces the suggestion list's hint line with the last few touch events, so a touch problem on a real device can be reported precisely.
|
|
231
234
|
|
|
232
235
|
## On Android
|
|
233
236
|
|
|
@@ -235,9 +238,20 @@ One .jpl serves both platforms; it detects the platform at runtime. On mobile Co
|
|
|
235
238
|
|
|
236
239
|
Every picker — the notebook picker, the tag editor, the date picker, the whole profile editor — is drawn as a touch overlay inside the panel itself, because a plugin dialog on Android is always drawn behind the panel. A half-second press on a row, a group heading or a to-do's circle opens the same menus a desktop right-click does, and to-do rows gain an explicit "Move to date…" entry since an 18 px circle is a hard touch target. Rows get roughly 40 px hit areas, and the create buttons drop to icons so the header can give its width to the profile picker.
|
|
237
240
|
|
|
241
|
+
That same half-second hold also **arms a drag** behind the menu it opens: keep the finger down and move it **up or down** and the menu closes and the row lifts, to be dropped in the gap between two rows, or onto a group heading, a calendar day or a week-planner column, exactly as a mouse drag does on desktop. Releasing over anything else cancels; a hold you release without moving just leaves the menu open; and a sideways move is left to Joplin's own side-menu swipe.
|
|
242
|
+
|
|
238
243
|
Android can restart the panel's webview under load, so Cockpit keeps the scroll position, an open picker and an in-progress search — the typed query, the open dropdown and its marks — on the plugin side and rebuilds them.
|
|
239
244
|
|
|
240
|
-
Desktop-only:
|
|
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.
|
|
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. |
|
|
241
255
|
|
|
242
256
|
## Build from source
|
|
243
257
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-cockpit",
|
|
3
|
-
"version": "2.
|
|
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",
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"desktop",
|
|
8
8
|
"mobile"
|
|
9
9
|
],
|
|
10
|
-
"version": "2.
|
|
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:
|
|
47
|
-
"_publish_commit": "master:
|
|
46
|
+
"_publish_hash": "sha256:34b95ad880fc4a6e277834f48b7fe911d1628d724cd5fc88374f2fc7a0ebf1a5",
|
|
47
|
+
"_publish_commit": "master:369a33db2bdc5bad9137a8b733f568ab4b582255"
|
|
48
48
|
}
|