93 Commits

Author SHA1 Message Date
fc8193f892 Add support for formatting colors
All checks were successful
CI / lint (push) Successful in 3m27s
CI / Build and test (, 1.73.0) (push) Successful in 6m36s
CI / Build and test (, beta) (push) Successful in 7m1s
CI / Build and test (, nightly) (push) Successful in 5m38s
2023-11-26 02:32:21 +01:00
39134af79d Add support for formatting lists
All checks were successful
CI / lint (push) Successful in 3m21s
CI / Build and test (, 1.73.0) (push) Successful in 6m49s
CI / Build and test (, beta) (push) Successful in 6m58s
CI / Build and test (, nightly) (push) Successful in 5m48s
2023-11-26 01:49:59 +01:00
221af7d1b9 Collapse newlines from consecutive blocks and add indent to blockquote
All checks were successful
CI / lint (push) Successful in 3m30s
CI / Build and test (, 1.73.0) (push) Successful in 6m56s
CI / Build and test (, beta) (push) Successful in 7m0s
CI / Build and test (, nightly) (push) Successful in 5m44s
2023-11-25 23:33:14 +01:00
43f71e9caa Restore support for line breaks
All checks were successful
CI / lint (push) Successful in 3m29s
CI / Build and test (, 1.73.0) (push) Successful in 6m41s
CI / Build and test (, beta) (push) Successful in 6m51s
CI / Build and test (, nightly) (push) Successful in 5m39s
2023-11-25 22:13:53 +01:00
f0b2536e86 fmt and clippy
All checks were successful
CI / lint (push) Successful in 3m24s
CI / Build and test (, beta) (push) Successful in 7m0s
CI / Build and test (, 1.73.0) (push) Successful in 7m39s
CI / Build and test (, nightly) (push) Successful in 5m59s
2023-11-25 21:43:30 +01:00
2385f33e6b Fix tests
Some checks failed
CI / lint (push) Failing after 1m4s
CI / Build and test (, 1.73.0) (push) Successful in 6m56s
CI / Build and test (, beta) (push) Successful in 7m15s
CI / Build and test (, nightly) (push) Successful in 6m45s
2023-11-25 21:24:47 +01:00
f270ef25b4 Add minimal support for HTML formatting
Just bold/italic/underline for now.
2023-11-25 21:18:24 +01:00
f4f134870b buflist: Set last_area as soon as possible
Some checks failed
CI / lint (push) Failing after 49s
CI / Build and test (, 1.73.0) (push) Failing after 5m11s
CI / Build and test (, beta) (push) Failing after 5m32s
CI / Build and test (, nightly) (push) Failing after 5m13s
2023-11-25 10:08:03 +01:00
9a422a6d7e Fix rooms with no messages being colored as if they had unread messages
Some checks failed
CI / lint (push) Failing after 35s
CI / Build and test (, 1.73.0) (push) Failing after 3m6s
CI / Build and test (, beta) (push) Failing after 3m15s
CI / Build and test (, nightly) (push) Has been cancelled
2023-11-25 09:59:39 +01:00
d79f5d7527 Make history-related constants configurable
Some checks failed
CI / lint (push) Failing after 59s
CI / Build and test (, 1.73.0) (push) Failing after 5m1s
CI / Build and test (, beta) (push) Failing after 5m8s
CI / Build and test (, nightly) (push) Failing after 4m46s
2023-11-22 18:13:38 +01:00
501ccc007e Fix tests
All checks were successful
CI / lint (push) Successful in 2m21s
CI / Build and test (, 1.73.0) (push) Successful in 5m17s
CI / Build and test (, beta) (push) Successful in 5m40s
CI / Build and test (, nightly) (push) Successful in 5m7s
2023-11-22 17:28:30 +01:00
9cef34eb5c Switch to upstream matrix-sdk
Some checks failed
CI / lint (push) Successful in 4m13s
CI / Build and test (, 1.73.0) (push) Failing after 7m32s
CI / Build and test (, beta) (push) Failing after 7m54s
CI / Build and test (, nightly) (push) Failing after 4m32s
2023-11-22 16:50:30 +01:00
1c8c6d3e3e Make PageUp/PageDown behavior configurable and default to 50% 2023-11-22 15:56:56 +01:00
c7124c1191 Silence clippy
Some checks failed
CI / lint (push) Failing after 2m30s
CI / Build and test (, 1.73.0) (push) Failing after 3m14s
CI / Build and test (, beta) (push) Failing after 3m35s
CI / Build and test (, nightly) (push) Failing after 2m37s
2023-11-22 09:43:01 +01:00
30b1e4282a buflist: Use different color when only non-messages are unread
Some checks failed
CI / lint (push) Failing after 2m30s
CI / Build and test (, 1.73.0) (push) Successful in 5m1s
CI / Build and test (, beta) (push) Successful in 6m8s
CI / Build and test (, nightly) (push) Successful in 5m24s
2023-11-19 18:24:26 +01:00
b60834ebb3 buflist: Show rooms with unread events in red
All checks were successful
CI / lint (push) Successful in 2m27s
CI / Build and test (, 1.73.0) (push) Successful in 5m15s
CI / Build and test (, beta) (push) Successful in 6m22s
CI / Build and test (, nightly) (push) Successful in 5m33s
2023-11-19 17:12:55 +01:00
8d6a076b59 Color rooms in the buflist based on notifications/highlights
All checks were successful
CI / lint (push) Successful in 2m24s
CI / Build and test (, 1.73.0) (push) Successful in 4m57s
CI / Build and test (, beta) (push) Successful in 6m2s
CI / Build and test (, nightly) (push) Successful in 5m22s
2023-11-19 11:21:32 +01:00
9c9f21bc82 Clippy
All checks were successful
CI / lint (push) Successful in 1m56s
CI / Build and test (, beta) (push) Successful in 4m15s
CI / Build and test (, 1.73.0) (push) Successful in 4m27s
CI / Build and test (, nightly) (push) Successful in 5m5s
2023-11-18 19:00:34 +01:00
dd9028cbb2 Identify active buffer by id instead of index
Some checks failed
CI / lint (push) Failing after 2m19s
CI / Build and test (, 1.73.0) (push) Has been cancelled
CI / Build and test (, beta) (push) Has been cancelled
CI / Build and test (, nightly) (push) Has been cancelled
So the active buffer doesn't change when buffers are reordered
2023-11-18 18:58:45 +01:00
e03970a931 buflist: Add support for clicks to switch buffers
Some checks failed
CI / lint (push) Failing after 2m5s
CI / Build and test (, beta) (push) Successful in 4m15s
CI / Build and test (, 1.73.0) (push) Successful in 4m23s
CI / Build and test (, nightly) (push) Successful in 5m12s
2023-11-18 18:32:55 +01:00
f4ea84b862 buflist: Add support for multiple columns
All checks were successful
CI / lint (push) Successful in 1m44s
CI / Build and test (, beta) (push) Successful in 4m3s
CI / Build and test (, 1.73.0) (push) Successful in 4m21s
CI / Build and test (, nightly) (push) Successful in 5m6s
2023-11-18 11:32:00 +01:00
56bab04a5a Remove register_config_handler, pass config directly to ::new()
Some checks failed
CI / Build and test (, nightly) (push) Waiting to run
CI / lint (push) Successful in 1m37s
CI / Build and test (, 1.73.0) (push) Has been cancelled
CI / Build and test (, beta) (push) Has been cancelled
2023-11-18 11:28:45 +01:00
2856dd0504 Hardcode default config, and document how config works 2023-11-18 11:27:32 +01:00
fec449b933 Segregate lint and test cache
All checks were successful
CI / lint (push) Successful in 1m17s
CI / Build and test (, beta) (push) Successful in 2m20s
CI / Build and test (, 1.73.0) (push) Successful in 2m35s
CI / Build and test (, nightly) (push) Successful in 1m43s
As Clippy does not compile dependencies and completes first, they end up never being cached
2023-11-17 16:50:50 +01:00
929920edb2 Install zstd 2023-11-17 16:50:49 +01:00
dd404147ab Preserve current position when new items are added to a buffer
All checks were successful
CI / lint (push) Successful in 5m3s
CI / Build and test (, 1.73.0) (push) Successful in 9m34s
CI / Build and test (, beta) (push) Successful in 9m34s
CI / Build and test (, nightly) (push) Successful in 8m46s
2023-11-17 14:34:16 +01:00
9b29d4d9e5 Add CI (#1)
All checks were successful
CI / lint (push) Successful in 4m49s
CI / Build and test (, 1.73.0) (push) Successful in 10m24s
CI / Build and test (, beta) (push) Successful in 10m24s
CI / Build and test (, nightly) (push) Successful in 8m51s
Reviewed-on: #1
Co-authored-by: Val Lorentz <progval+git+ratatrix@progval.net>
Co-committed-by: Val Lorentz <progval+git+ratatrix@progval.net>
2023-11-14 22:19:54 +00:00
2a32db27ea Clippy 2023-11-14 22:33:05 +01:00
1ff972803b Don't depend on ~/.config/ in tests 2023-11-14 20:14:19 +01:00
9d2555c1a1 Update tests 2023-11-13 22:14:22 +01:00
e048638735 Prevent the last child of a space from being stolen by other space later
This caused flickering on screen where children shared by two spaces
would rotate on every render.
2023-11-12 11:08:24 +01:00
27b4fd7881 List space children in canonical order 2023-11-12 10:55:05 +01:00
29d69a2bc0 Fetch backlog more eagerly
By fetching it when the user gets close to the end of the backlog (rather than
waiting for them to actually see the end)
2023-11-11 10:59:19 +01:00
b1d98c0da0 Only fetch display_name/parent/children if there was any update to the room state
Previously, fetching those pinned a whole CPU core, and panicked with
`called `Option::unwrap()` on a `None` value` here:
https://github.com/bikeshedder/deadpool/blob/deadpool-sync-v0.1.2/sync/src/lib.rs#L122
presumably because the high churn in created and dropped futures.

Technically we should re-fetch the parent if any space was updated (because
`Room::parent_spaces()` checks relationships are reciprocal), but
let's do this later
2023-11-11 10:40:26 +01:00
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