I need some advice
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
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.
- Create a user function (eg.
size=$(wc -l < $file)
line=$((1 + $RANDOM % $size))
echo $(sed -n "$line"p < $file)
- Use that function in your desired template. For example:
## Daily Questions
### 1. <% tp.user.question() %>
### 2. <% tp.user.question() %>
### 3. <% tp.user.question() %>
### 4. <% tp.user.question() %>
### 5. <% tp.user.question() %>
That’s amazing. Huge thanks! This is exactly what I was looking for. Thanks for the effort and writing this code.
this does its job. it’s a little cumbersome, but it works. Thanks for the idea!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.