mirror of
https://github.com/aculix/negotium.git
synced 2026-09-11 07:28:17 +00:00
02c8d6f6b0
Fixing a typo meant deleting the task and typing it again, which also cost you its position in the list. Click the text to edit it. Enter saves, Escape cancels, clicking away saves. The rename rule lives in tasks.js and is tested. It refuses blank input rather than treating it as a delete, since selecting all and hitting enter by accident should give you your task back, and it returns the original array untouched when nothing changed so an idle edit does not write to storage. The interesting part was what editing collides with. Keystrokes are stopped from reaching the row, or Delete would remove the task you are typing into and Alt+Arrow would reorder it mid-edit. A drag cannot start from inside the field, and the click a drag leaves behind is swallowed, or dropping a row would open it for editing. Switching day, deferring a task and the midnight rollover all close an open editor, so it cannot be left hanging over a row that is no longer there.