From 3a2f155a21f3f7b59da65d1be9c9db3c5c181073 Mon Sep 17 00:00:00 2001 From: Greg Bodnar Date: Wed, 24 Jul 2019 19:56:03 +1200 Subject: [PATCH] Add recipe to display random entry --- docs/recipes.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/recipes.md b/docs/recipes.md index 7af5b246..45ef18b4 100644 --- a/docs/recipes.md +++ b/docs/recipes.md @@ -94,6 +94,15 @@ log_question 'What did I achieve today?' log_question 'What did I make progress with?' ``` +### Display random entry + +You can use this to select one title at random and then display the whole +entry. + +``` sh +jrnl -on "$(jrnl --short | shuf -n 1 | cut -d' ' -f1,2)" +``` + ## External editors To use external editors for writing and editing journal entries, set