Commit graph

780 commits

Author SHA1 Message Date
27769d38d2 Decrease poll duration again 2022-06-17 20:50:20 +02:00
36e1dbfa59 Compose messages via external editor 2022-06-17 20:50:12 +02:00
9a351b5eb3 Calculate previous and next sibling in tree 2022-06-17 20:49:17 +02:00
54fc4b59ce Set pragmas and migrate db 2022-06-17 18:22:22 +02:00
74a80f6ec4 Ensure db is closed properly when exiting 2022-06-17 14:48:01 +02:00
9763c11f3f Quit with ctrl+c 2022-06-16 00:52:56 +02:00
9d1810eceb Open and close sqlite db properly 2022-06-16 00:51:00 +02:00
e65bf49a6e Remove unused dependencies 2022-06-16 00:51:00 +02:00
d5dd2924eb Remove crossterm's event-stream feature 2022-06-16 00:51:00 +02:00
23c551a5b7 Make store room-specific 2022-06-16 00:51:00 +02:00
15213f8003 Add more dummy messages 2022-06-16 00:51:00 +02:00
fee405b573 Implement cursor movement 2022-06-14 23:34:27 +02:00
a1c714d116 Fumble around unsuccessfully with cursor movement 2022-06-14 22:20:49 +02:00
0d77b3cf92 Reword comments and code slightly 2022-06-14 22:15:02 +02:00
704873af6e Ensure blocks are always scrolled properly 2022-06-14 19:37:04 +02:00
ea6b345fa9 Start implementing proper cursor movement 2022-06-14 17:29:26 +02:00
bec12917d6 Extract cursor proportion calculations 2022-06-14 16:41:01 +02:00
eeb350aef4 Describe modules 2022-06-14 16:09:19 +02:00
01ec2c67c1 Clean up rendering a bit 2022-06-14 16:03:45 +02:00
d6d8397683 Clean up layouting a bit 2022-06-14 14:00:27 +02:00
221a783858 Increase input poll duration 2022-06-14 11:25:56 +02:00
1dbc95bb81 Rename constants module to util 2022-06-14 10:48:18 +02:00
b918f0f31f Fix message order and cursor movement 2022-06-14 10:30:08 +02:00
8cbdc89b7e Clean up message rendering 2022-06-14 10:26:27 +02:00
b96ade872f Fix dummy store tree retrieval 2022-06-14 09:34:22 +02:00
73582c3d1f Extract layouting into separate module 2022-06-14 09:20:41 +02:00
e7ce00e528 Extract blocks and layout into separate module 2022-06-14 09:17:30 +02:00
eba68dc7d7 Extract constants to separate module 2022-06-13 23:33:14 +02:00
6e9216913e Make block ids mandatory 2022-06-13 23:16:30 +02:00
fc7b01b8c2 Round cursor position towards top of screen 2022-06-13 23:14:57 +02:00
1113c197f7 Center cursor with z 2022-06-13 23:14:38 +02:00
dc0c56d759 Fix some warnings 2022-06-13 23:09:40 +02:00
bb6169e315 Move cursor upwards 2022-06-13 23:07:12 +02:00
f36f205a40 Disable width measuring 2022-06-13 22:42:12 +02:00
3b8cd6c0a1 Fix vertical off-by-one 2022-06-13 22:41:58 +02:00
f8d365064c Fix time format 2022-06-13 22:12:18 +02:00
84d7b3d8b7 Render time in proper position 2022-06-13 22:10:55 +02:00
0f7d291612 Implement buggy tree layouting 2022-06-13 22:09:12 +02:00
021d5a8943 Start working on tree layouting 2022-06-13 20:00:23 +02:00
6fdce9db1e Fix errors preventing compilation 2022-06-13 16:43:28 +02:00
fb7e504f2c Flesh out store details 2022-06-13 16:20:44 +02:00
e72fd60d16 Hook up TreeView to Chat 2022-06-13 10:27:15 +02:00
14125c1650 Hook up Chat to UI 2022-06-13 10:17:38 +02:00
4b28b0e3b2 Add dummy store 2022-06-13 09:57:27 +02:00
0be5c7f67a Update dependencies 2022-06-13 09:25:43 +02:00
bea4ed90e7 Add Msg and MsgStore traits 2022-06-13 09:22:52 +02:00
84d554dee9 Update toss and crossterm event polling 2022-06-08 19:00:27 +02:00
00c905eff5 Delete lots of stuff 2022-06-08 15:03:37 +02:00
742e7725ab Update dependencies and add toss 2022-05-29 12:53:02 +02:00
168acbf6dc Set nick and join room
While entering a nick and while present, events seem to get swallowed by
the room. I'll need to rethink my event handling strategy and key
bindings. For the key bindings, I'll either need global bindings that
don't interfere with text boxes, or I'll need modal editing or something
similar where pressing ESC enough brings you back to the global focus.
Global key bindings are things like switching rooms and quitting.
2022-03-05 23:34:16 +01:00