-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daily streak report (maybe heatmap) #743
Comments
I'm interested in attempting to implement this. What would be a good way to invoke the heatmap? Termgraph renders the calendar by density of entries on a day of the week cumulatively for the entire month, would this really be the best idea when a user just wants to see how many days in the past week they've written something? Termgraph is very convenient because it's easy to just copy the single file into the project. It's ideal but harder to hack together some system to generate data in a form that can be easily fed to I haven't looked into how to count entries yet, but I assume that it should be fairly straightforward given that functions like reading from and until a certain date work. Streak calculation is also easy once the distribution of entries can be obtained. |
@eshrh Thanks for volunteering to work on a feature! I think this should be an exporter plugin (much like our current markdown, json, yaml, etc exporters). These are run by something along the lines of Let us know if you have more questions along your way to work on this. |
@eshrh I thought that was an interesting idea. Maybe this only needs to be added as a
|
If they are using colorized titles and dates, they'll need this: $ jrnl --short | awk '{print $1 " 1"}' | cut -c 10- | termgraph --calendar This is a good suggestion, I think. I'm in favor of keeping this as a recipe (provided that we can get a real heatmap instead of a binary "jrnl / no jrnl" indicator). |
@alichtman I need to create a longer history, but I chose |
I tested that and wasn't able to get a real heatmap out of it. It's possible that termgraph doesn't support this but I haven't had time to look into it yet. |
this works for me to really show the "heat" on each day. |
$ jrnl --short | awk '{print $1}' | cut -c 10- | sort | uniq -c | awk '{printf("%s %s\n", $2, $1)}' | termgraph --calendar This is the version that works if you're using colored titles. Nice work, @marylein. |
I think these all are promising, but have the downside of only working with certain date formats (since the date customizable in the config file). Why don't we implement a general export (like the tags) of dates and counts that can be piped to termgraph to get a heatmap? It might look something like |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump. |
It'd be cool to be able to see how often you're journaling. Extracted from #591.
I'm thinking that the calendar heatmap option in termgraph.py is a good choice.
The text was updated successfully, but these errors were encountered: