36 Commits

Author SHA1 Message Date
41778accdc Random clean up 2023-06-15 19:21:01 +07:00
f951e500f1 Bubble up all db errors. Implement Deref and DerefMut for DBConn 2023-06-15 16:32:23 +07:00
f5b39592a4 Fix bug in moving and deleting a task. Remove some unwraps 2023-06-15 15:54:18 +07:00
940e07d72c WIP Refactoring methods: Move everything into app.rs 2023-06-15 11:53:28 +07:00
a3e3fa6551 WIP Refactoring methods: Got it to compile and it mostly works 2023-06-14 22:33:19 +07:00
c00500a4e1 WIP Refactoring methods: Move stuff from input to app 2023-06-14 21:53:38 +07:00
71f12ec7f9 WIP Refactoring methods: Merge Project into State, add DBConn struct with impl 2023-06-14 19:13:24 +07:00
4accf41c45 Fix colors and style, condense some logic. Fix task_idx when moving task 2023-06-14 17:38:23 +07:00
c2e3f0e70a Save column/task selections in a few other options 2023-06-14 10:54:19 +07:00
4e0195e132 Pedantic clippy 2023-06-13 23:00:28 +07:00
7c2249ed08 Selected column and task now persist. Reworked the borrowing for task edit 2023-06-13 22:51:04 +07:00
c030984d51 Extract funcs from input-check to reduce nesting and make pedantic clippy happy 2023-06-13 16:32:46 +07:00
c3255c97f5 Pedantic clippy pass 2023-06-13 15:59:24 +07:00
7fe20e6ae8 Run migrations on first creation, fix a bunch of panics 2023-06-13 15:50:16 +07:00
00ac0c351d Update and move task order up/down, read ids, more column helper methods 2023-06-13 12:41:37 +07:00
4477bac258 Add/delete tasks, read task id from db 2023-06-12 22:25:58 +07:00
5d3e69d679 rustfmt 2023-06-10 11:12:17 +07:00
09177ddbae Simplify keybindings and description. Add g and G movements. Remove -d flag 2023-06-09 15:49:52 +07:00
c6343a4805 Run and fix pedantic clippy and 2018 idioms 2023-06-09 13:26:29 +07:00
6a323d06c1 Create or open file. Save on add/remove/edit task 2023-06-07 23:34:40 +07:00
88990089c2 Move task state getter to column methods 2023-06-07 11:22:19 +07:00
78cb7fe84a You can now edit an existing task 2023-06-06 21:59:18 +07:00
bef0836184 WIP: Edit an existing task 2023-06-06 21:38:36 +07:00
da10719250 Fix task edit border and rename some symbols 2023-06-06 21:03:19 +07:00
fc237b9f29 Remove task with D, move methods to column struct, select next/previous 2023-06-06 12:49:34 +07:00
be4fc3566d Buttons to create or cancel the task entry 2023-06-06 11:17:13 +07:00
61feafaf7e Highlight which text area is currently selected 2023-06-05 11:44:59 +07:00
ef90532d12 WIP: TextArea form to add a new TODO item, switch to ratatui 2023-06-05 11:24:18 +07:00
167f506291 NewTask state to manage adding a new task 2023-06-04 14:51:47 +07:00
001652a63a Moving out of state and into the respective impl. Fix bugs 2022-12-10 23:04:55 +04:00
c999764a28 WIP: Refactor data types 2022-12-09 04:25:50 +04:00
2e2145b2ab Show new popup screen for adding a task. Basic state added 2022-12-06 00:21:01 +04:00
ae99fa193c Added task shifting up and down and left and right.
Francesco added some stuff as well.
2022-12-05 02:37:18 +04:00
c38fa823c9 Change columns up. Refactor input and state change code. 2022-12-05 00:32:48 +04:00
6472bbb1bc Render selected task with bounds checking 2022-12-04 04:29:36 +04:00
436c9ed3cf Rendering tasks to their individual columns 2022-12-04 02:47:37 +04:00