From dc7d1257a4eb042c9f8a7b8cae913410c93620f4 Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 3 Oct 2022 00:32:21 +0000 Subject: Confirm delete_task operation. --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index c68ca55..7b65d00 100644 --- a/readme.md +++ b/readme.md @@ -42,9 +42,9 @@ Task Time Tracker - [x] Allow usage of `ttt: ./ttt --dpath ./` to change the app folder: To changes app data path change the environment variable HOME (USERPROFILE for windows users). - [x] Clone (replicate) task; If task is active, mark newly created task as inactive; - [x] Check if next/previous is safe against overflows/underflows using https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html -- [ ] Confirm delete_task operation. - - For actions that require confirmation, show confirmation message on selected line (horizontally centered) saying "Press enter to delete/archive. Any other to cancel." and await on `getch` for a `\n`. On archiving action this should only occur if the task is active. Use red/black for confirmation message surrounded by diamonds. Implement this using a function `bool get_confirmation(const char *message)`. -- [ ] Check totals update speedup using https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html +- [x] Confirm delete_task operation by show confirmation message on selected line (horizontally centered). +- [x] Check totals update speedup using https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html + - For 1M entries, generic C code runs in 12.0ms and builtins runs in 9.5ms. Not worth the effort. - [ ] Change task order (using task_t tmp_task + memcpy); - [ ] Allow to jump to specific task by index number using key `g` and `G`; - [ ] Add/remove time using keys: `F3`; -- cgit v1.2.3