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 rubberducky.guru targeting main from rubberducky.guru/thought-stream-cli: main

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.

0
by rubberducky.guru 5 comments
expand 2 commits
added multiple terminal sync using global timestamps
cleanup

Zed added made a bunch of other formatting changes and cargo clippy did not help. Let me know if you want me to change stuff like adding a rustfmt.toml so that it formats the same way for everyone.

-#[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
sign up or login to add to the discussion
Labels

None yet.

Participants 1
AT URI
at://did:plc:rcuvobqkuogi6meqto3hf6jl/sh.tangled.repo.pull/3lympbu5n2l22