109 Commits

Author SHA1 Message Date
89e011dd1b Use public repo for the matrix-sdk 2023-11-10 23:18:34 +01:00
5c498d9f06 Move rooms with no explicit parent after any space with contains them 2023-11-10 23:01:28 +01:00
4d0600d269 Move rooms which declare a space next to their space 2023-11-10 20:48:18 +01:00
c5d54d26d2 Use eyeball-im release 2023-11-10 13:51:14 +01:00
6c15ada7d4 Add numbers to the buflist and make it more colorful 2023-11-07 19:48:13 +01:00
b9055dc5d3 Use room display name instead of alias/id 2023-11-06 22:32:57 +01:00
55e814e955 Add /memuse command 2023-11-06 20:37:24 +01:00
224e63c9da Add comment about the duplicate work in widget.height() 2023-11-05 19:46:30 +01:00
1a34a4ce5e Properly format day delimiter 2023-11-05 17:11:32 +01:00
06e3228bbc Stop paginating on TimelineStartReached 2023-11-05 15:25:49 +01:00
ec13ce08d7 Use canonical alias in buflist when possible 2023-11-05 11:19:50 +01:00
36540ea4be Exclude empty columns on the right from the prerender cache 2023-11-05 11:17:34 +01:00
3317024231 Skip missed render deadlines instead of trying to catch up 2023-11-05 10:24:16 +01:00
90e86724df Prevent partial widget being written to prerender cache 2023-11-05 10:05:11 +01:00
2145aff76f Keep a bit more logs 2023-11-05 10:01:26 +01:00
2fafdcfa40 Add tests for backlog rendering 2023-11-05 10:00:19 +01:00
b81ec4ae4f Move buffer copy to its own function, it's more readable 2023-11-05 08:23:31 +01:00
1199dd7613 Cache the result of rendering backlog items
It's so much faster when getting lots of updates, especially with the
'Added client for' log storm at startup.
2023-11-04 22:16:33 +01:00
16e7b7c8de backlog: Actually exit the for loop once we rendered the bottom paragraph
The first loop is more expensive due to computing the height before
rendering...
2023-11-04 22:12:23 +01:00
46b703ba45 Make buffers return their items lazily from the end instead of materializing them 2023-11-04 20:14:51 +01:00
d5e5639ba7 Create room buffers when new rooms are returned by server sync 2023-11-04 20:06:44 +01:00
6f8c3a19b2 Trigger re-render when pushing to the log 2023-11-04 17:19:58 +01:00
0d24d659c5 Improve error handling on startup 2023-11-04 15:18:26 +01:00
6998f0b84f Increase default frame rate so it looks responsive when typing 2023-11-04 15:18:26 +01:00
b609c26b2c Don't redraw more often than the configured frame-rate 2023-11-04 15:18:26 +01:00
58ab62d7d3 Format timeline events in a human-readable way 2023-11-04 15:18:26 +01:00
b4eeb8a6b8 Display repr of timeline items instead of their diffs' 2023-11-04 11:40:14 +01:00
e04c58fec2 Only re-render when an event happened
For now we don't even filter out invisible events, but it already cuts down
considerably on CPU usage.
2023-11-04 10:08:09 +01:00
5b4b9d01df Add scrolling 2023-11-03 13:15:38 +01:00
91a1d9ced6 Backfill room history on startup 2023-11-03 11:35:22 +01:00
347c183a8c Don't run rustfmt on reflow.rs 2023-11-03 11:24:50 +01:00
aaa4297d4c Import modified reflow from ratatui
This was recommended by the ratatui maintainer, as this API is more likely to
be deprecated than made public
2023-11-03 09:37:41 +01:00
fe676cacda Make buffers fill from the bottom, and render each paragraph individually
The goal of rendering paragraph individually is to eventually avoid
redrawing everything every time there is a change
2023-11-02 21:45:40 +01:00
6dddd7ea2c Fix test 2023-11-02 19:30:36 +01:00
fd649a1ed9 Make the backlog its own component 2023-11-02 16:09:57 +01:00
c837f471e5 Wrap buffer content so it's not hidden to the right 2023-11-02 15:00:58 +01:00
d7b23edb8c Enable thin LTO for release builds
It takes the same time to run and makes the output marginally smaller
2023-11-02 12:32:56 +01:00
fda09e0127 Poll room updates and display them 2023-11-02 12:01:15 +01:00
e0bc599ce5 Prematurely optimize RoomBuffer's memory usage 2023-11-02 09:20:52 +01:00
72018ff53c Add textarea and run commands from it 2023-11-01 21:53:07 +01:00
1c13d2c784 Make the log buffer show logs 2023-11-01 18:57:25 +01:00
b81906c318 Add active buffer 2023-11-01 14:33:20 +01:00
41bf892e74 rustfmt 2023-11-01 14:13:04 +01:00
0f97aad2e8 Minimal buflist with just the room ids 2023-11-01 11:12:31 +01:00
ed031d9757 Update ratatui to v0.24 2023-11-01 09:30:46 +01:00
b98773a0a9 Add state store 2023-10-31 19:52:40 +01:00
34f7377d05 Update matrix-sdk to latest Git
There have been major changes since the last release a year ago; including
a switch from sled to sqlite, which will make it easier to inspect the data
2023-10-31 18:56:47 +01:00
a024e9ef45 Print sync_response instead of crashing 2023-10-31 18:47:19 +01:00
f9ea62b654 [WIP] Fetch events from Matrix 2023-10-30 22:11:06 +01:00
e407656a53 Set device display name 2023-10-30 19:30:44 +01:00