IAM.MT streak

Streak command in Roam

I am a big fan of journaling and I use Roam to track my Daily Notes. I also track my mood using Roam’s hashtag feature, which is another way of backlinking in Roam.

Last year, right around this time, I learned that Roam has a command called /Streak and I never found a good use case for it. A year later, last week, I was looking back at what I had written the previous year that day (I love doing that) and found my notes on this command. As soon as I read it, I got an idea on where I could use it.

Streak command

The Streak command lets you pick a page and tracks how often you’ve updated that page. The cool thing is that Roam considers references to the page as updates. So, whenever you backlink or use a hashtag of that page, Roam tracks it as an update to the backlinked page and updates your streak.

This gave me an idea. The way I track my daily mood is by using Hashtags. Let’s say one of the hashtags I used to describe my mood today is Relaxed, I can just do the following to see how many times over the past year or even overall, I felt relaxed.

I first trigger the Streak command by using /Streak. Roam then replaces the text with this text: {{[[streak]]: [[$]]}}. I put a $ to denote the cursor position. Now, I just put in the name of the page I want to see the streak of. In this case, {{[[streak]]: [[Relaxed]]}}. That’s it. Once I hit enter, Roam displays the streak for the page/hashtag Relaxed.

It’s embarrassing how few times I felt relaxed over the past few months

I use it with various other pages too, but this to me seems like one of the best use cases for me.


Comments

5 responses to “Streak command in Roam”

  1. Baibhav Bista Avatar
    Baibhav Bista

    Awesome use case, Mohnish!

    1. Thank you, Baibhav. Big fan of Roam. One of those tools that I use multiple times a day.

  2. JC Cangilla Avatar
    JC Cangilla

    Wow. I had no idea that this functionality existed.

    And I love the presentation of the output; I have this amazing color coded map of how my daily gratitude practice is going. The grey spaces (the times I haven’t journaled) are due to various factors (offline for a bit in August, I’m less diligent about Sundays, etc.) This really helps me understand the habit in a new way. Thanks for posting.

    Is there any hack to play with the time parameters? I want to know how this habit was, say, 2 years ago?

    1. In my experience, the streak doesn’t allow for any time parameters, unfortunately. The command by default shows your streak relatively from the previous 1 year i.e. on 4th April 2024, you’d be able to see your streak since 4th April 2023.

    2. Baibhav Bista Avatar
      Baibhav Bista

      Hey JC Cangilla,
      So the way it works is: if streak is on a daily notes page, it takes that date instead of current date
      So, if you wanted to see how this habit was 2 years ago, one thing you could do is: go to [[May 3rd, 2022]], and then create the streak there
      Baibhav from the Roam team 😁

Comments

Discover more from Mohnish Thallavajhula

Subscribe now to keep reading and get access to the full archive.

Continue reading