Add a way to catch up #1

Open
opened 2023-07-20 17:26:11 +00:00 by cmdln · 0 comments
Owner

If I add a reply the day after I've already captured statuses into my local chronicle, there isn't any easy way to get just the net new. Re-running will simply append all the same statuses plus the new ones. Outputting to standard out isn't much better, especially since the experience of copying-pasting from long output quickly degrades.

When the output directory is set, could read the file then run it and the new version through the diff crate. Should be able to use that figure out the new lines, maybe even enough context to still append but with enough info to quickly edit into place.

If I add a reply the day after I've already captured statuses into my local chronicle, there isn't any easy way to get just the net new. Re-running will simply append all the same statuses plus the new ones. Outputting to standard out isn't much better, especially since the experience of copying-pasting from long output quickly degrades. When the output directory is set, could read the file then run it and the new version through the [`diff`](https://crates.io/crates/diff) crate. Should be able to use that figure out the new lines, maybe even enough context to still append but with enough info to quickly edit into place.
cmdln self-assigned this 2023-07-20 17:26:47 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cmdln/kensho#1
No description provided.