mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 17:05:48 +00:00
* Implement task parsing with sub-tasks Added a new function to parse tasks with sub-tasks from a text input, improving task management capabilities. Updated the task addition logic to utilize this new parsing method. Should solve #7183 * Enhance task parsing and user information Key Changes Summary: ✅ Critical Fix #1 - 4-space indentation: Detects minimum indent and normalizes relative to it ✅ Critical Fix #2 - Mixed input: Plain-text lines no longer silently dropped; warning shown ✅ Critical Fix #3 - Deeply-nested items: Now flattened to sub-task level with user notification ✅ Minor - Sub-task dueDay: Documented that it inherits from parent (not passed independently) ✅ Suggestion - UI/UX: Updated placeholder text to show expected format with examples * fix indentation calculation and missing isBullet: true * fix(brain-dump-plugin): keep sub-tasks when plain-text lines interrupt Previously, a plain-text line between a bullet and its indented sub-task caused the sub-task to be silently dropped: the outer loop advanced past the plain-text entry but the inner look-ahead had already exited at indent 0, so the following indented bullet was never attached to the parent and was rejected by the outer loop's else branch. The sub-task scan now skips over plain-text lines while still breaking at the next top-level bullet, so indented bullets attach to the previous parent regardless of interleaved plain text. The plain-text line itself is still emitted as its own top-level task by the outer loop. Also drops dead code: - findMinimumIndent() was declared but never called. - dueDay on sub-task payload was forwarded but silently discarded by the plugin bridge (sub-tasks inherit the parent's date). And de-duplicates the "Note: ... Note: ..." prefix in the deeply-nested warning snack. --------- Co-authored-by: Adnoh <git@rotzefull.de> Co-authored-by: Johannes Millan <johannes.millan@gmail.com> |
||
|---|---|---|
| .. | ||
| icon.svg | ||
| manifest.json | ||
| package.json | ||
| plugin.js | ||