Is it possible to create "Daily Reviews" based on random questions in Obsidian?

Hey,
I need some advice :slight_smile:

I would like to create a daily / weekly / monthly review in Obsidian. For this I have created a list of questions i would like to ask myself each day in a txt-file (one question per line).

Now my question: is it possible in Obsidian (e.g. with the templater plugin or a script) to select 5 random questions from this list and insert them into my “Daily Notes”? If so, how to do that? And if not, is there a diffrent way or even plugin to do this?

I thank you in advance for your time and your suggestions :slight_smile:

You can try the Spaced Repetition plugin or the Recall plugin.

It’s not in the plugin gallery, but another option is the Shuffle plugin:

(You have to install it manually.)

You can achieve that with the Templater plugin.

This is using the current macOS. Other OS may differ, as the plugin relies on the system command line.

  1. Create a user function (eg. question)
file="Path/To/Your/Questions File.txt"
size=$(wc -l < $file)
line=$((1 + $RANDOM % $size))
echo $(sed -n "$line"p < $file)
  1. Use that function in your desired template. For example:
# Daily 
## Daily Questions
### 1. <% tp.user.question() %>


---

### 2. <% tp.user.question() %>


---

### 3. <% tp.user.question() %>


---

### 4. <% tp.user.question() %>


---

### 5. <% tp.user.question() %>


6 Likes

That’s amazing. Huge thanks! This is exactly what I was looking for. Thanks for the effort and writing this code.

1 Like

this does its job. it’s a little cumbersome, but it works. Thanks for the idea!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.