Update nightwatch75/todo to 0.0.9 — drag-and-drop reorder (plugin API 5) (#91)
Manual-mode reordering now uses declarative drag-and-drop (ui.dragSource / ui.dropZone, plugin_api 5) instead of the two-click grip; also folds in the 0.0.8 crash-loop fix (strike() gated on utf8.len) and an onExit autosave flush. Translation keys nested for the validator. Co-authored-by: nightwatch75 <nightwatch75@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
nightwatch75
Claude Opus 4.8
parent
7fa3903113
commit
5e7655dc73
+5
-8
@@ -28,7 +28,7 @@ noctalia msg panel-toggle nightwatch75/todo:panel
|
||||
| **+** (panel header) | Add a new task and start typing it |
|
||||
| Sort toggle (panel header) | Switch ordering between **Priority** and **Manual** |
|
||||
| Colour chip (row) | Cycle the task's priority: important → medium → low |
|
||||
| ☰ grip (row, manual only) | Pick the row up / drop the held row here (reorder) |
|
||||
| ☰ grip (row, manual only) | Drag the row to a new position (reorder) |
|
||||
| Click the text, or ✎ (pencil) | Edit the task's text |
|
||||
| **Enter**, or ✓ (row) | Commit the edit — the row goes back to a static line |
|
||||
| ☐ / ☑ button (row) | Toggle done/to-do (done tasks are struck through) |
|
||||
@@ -64,12 +64,9 @@ ordering.
|
||||
|
||||
### Reordering in manual mode
|
||||
|
||||
The noctalia plugin UI exposes no drag callbacks (only clicks), so the ☰ grip
|
||||
reorders with two clicks instead of a drag:
|
||||
|
||||
1. Click a row's ☰ grip — it lights up; that row is now "held".
|
||||
2. Click another row's ☰ grip — the held row drops in just above it.
|
||||
3. Click the held row's own grip again to cancel.
|
||||
Grab a row by its ☰ grip and drag it. Thin insertion zones open up between the
|
||||
rows as you drag; drop the row on one to move it there. This uses noctalia's
|
||||
declarative drag-and-drop, which needs plugin API ≥ 5.
|
||||
|
||||
## Editing
|
||||
|
||||
@@ -114,7 +111,7 @@ noctalia msg plugins enable nightwatch75/todo
|
||||
|
||||
## Requirements
|
||||
|
||||
- noctalia ≥ 5.0.0
|
||||
- noctalia with plugin API ≥ 5 (declarative drag-and-drop)
|
||||
- No external dependencies
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user