diff options
| author | dam <dam@gudinoff> | 2022-10-27 00:34:28 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-10-27 00:34:28 +0000 |
| commit | eb5a3b3535057a62728460cce562aa64312e0519 (patch) | |
| tree | 29271ecf356f12d57b55d35cfa0d645d6c235bb5 /readme.md | |
| parent | f62a1e1b2c9358997da9f12edffaf2120f56f3ed (diff) | |
| download | task-time-tracker-eb5a3b3535057a62728460cce562aa64312e0519.tar.zst task-time-tracker-eb5a3b3535057a62728460cce562aa64312e0519.zip | |
Prototype code for store_database_partial.
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -5,6 +5,7 @@ Task Time Tracker - [ncurses colors](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/color.html#COLORBASICS) - [pprintf](https://cplusplus.com/reference/cstdio/printf/) - [intmax_t](https://wiki.sei.cmu.edu/confluence/plugins/servlet/mobile?contentId=87152366#content/view/87152366) +- [hexed.it](https://hexed.it/) # to-do list - [x] Include check on number of char bits; @@ -51,18 +52,20 @@ Task Time Tracker - [x] Add/remove time using keys: `F3`; - [x] Add/remove time for any day of week; - [x] Total times may saturate, but before that the user will see the infinite symbol. Solution: Provide user with possibility to refresh totals. -- [ ] Improve the way we save the changes made to the database: +- [x] Decide on a INVALID_WINDOW_MESSAGE. +- [x] Use backspace to clear all timers for current task. +- [ ] Save more often using the `store_database_partial` and only save all when quitting: - When operating on the archive, will we keep the saves synchronous? - Maybe add a cooldown timer and save changes after it times out? - Maybe add a partial-save when (de)activating a task (just save the task and the database core? - - partial_store_task(db, task) - - partial_store_database(db) - - on (de)activate_task : partial_store_database partial_store_database - - on rename, changetimes : partial_store_task - - on new_task : partial_store_database partial_store_task - - on refresh : partial_store_database - - on exit if active : partial_store_database partial_store_task - - on move, delete, archive: FULL store_database + - on (de)activate_task : partial w/task + - on rename, changetimes : partial w/task + - on new_task : partial w/task + - on refresh : partial + - on exit : full + - on move, delete, archive: full +- [ ] Check if string_buffer needs to be cleared. We may be leaking info on the string_buffer. +- [ ] Maybe replace all `sprintf` by `snprintf`; - [ ] REVISE ALL CODE ptrdiff_t/size_t (signed/unsigned)! - [ ] Go over all `TODO` items; - [ ] Cleanup `draw_tui`: |
