Random Note Query Filter

I think it would be helpful if there was a way to include a search query when opening a random note.

For example, let’s say you have an #animal tag that you use for notes about animals, and you want to open a random animal page. You’d use tag:#animal

Or maybe you have a folder of notes you never want to include when opening a random note: -path:ExcludeTheseNotes

This could be accomplished by simply adding a random button (same dice icon as the usual random note button) to the search pane. It might also be good to add an optional query to the Random Note plugin options, which applies a pre filter that is always on when opening a random note.

“Smart Random Note” plugin does exactly this. It has the commands:

Open Random Note
Open Tagged Random Note
→ Open Random Note from Search (any search you have active in your search pane)
Insert Link at Cursor to Random Note From Search

1 Like