Added sync functionality if you have several terminals open. Not much on it's own, but it also makes the timestamp of each messages use the created_at property from the blip record instead of just taking whatever the current time is before displaying it.
A Rust CLI for publishing thought records. Designed to work with thought.stream.
adding sync for multiple terminal using global timestamps #1
closed
opened by
expand 2 commits
hide 2 commits
added multiple terminal sync using global timestamps
cleanup
-#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone)] pub struct Message { pub handle: String, pub content: String,
@@ -263,11 +263,9 @@ async fn run_tui_loop( "you".to_string(), message, true,
-
Some( -
DateTime::parse_from_rfc3339(&t) -
.unwrap() -
.with_timezone(&Utc), -
),
-
DateTime::parse_from_rfc3339(&t) -
.map(|dt| dt.with_timezone(&Utc)) -
.ok(), // Parse RFC3339 โ UTC, None if invalid (so current timestamp instead) ));
Can't push those changes right now but I'll fix it this weekend
oops markdown formatting destroyed it and I can't edit/delete a comment, welp ยฏ_(ใ)_/ยฏ
Actually it was pretty quick to setup another ssh key. I have updated the PR with the changes
Unable to resubmit, I'll just create a new PR
closed without merging
Zed added made a bunch of other formatting changes and
cargo clippydid not help. Let me know if you want me to change stuff like adding arustfmt.tomlso that it formats the same way for everyone.