[Enhancement] Prevent empty tasks and treat empty edit as delete with undo #113
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
edfloreshz/tasks#113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue/Description:
Currently, the app allows creating tasks with no text (just space) sub-tasks with no char at all and saving existing tasks as empty. This leads to meaningless entries. Additionally, if a user accidentally clears text during edit (e.g., via the "X" button), there is no way to recover what was typed, resulting in an empty task.
Steps to Reproduce:
Expected Behavior:
Other Notes:
This change would prevent accidental creation of empty tasks and provide a safer editing experience by enabling recovery through undo or trash.
This is an easy fix! I'm simply checking that the input is not empty, I should also check for white spaces.
Yeah, trimming before check should fix this