From f3613cd5190237049a5382ace11cd7e4a35baebf Mon Sep 17 00:00:00 2001 From: Greg Bodnar Date: Wed, 24 Jul 2019 20:05:54 +1200 Subject: [PATCH] Add recipe to select an entry with fzf --- docs/recipes.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/recipes.md b/docs/recipes.md index 1c272e05..4f0c3c05 100644 --- a/docs/recipes.md +++ b/docs/recipes.md @@ -93,6 +93,15 @@ log_question 'What did I achieve today?' log_question 'What did I make progress with?' ``` +### Filtering with FZF + +Use the search powers of [fzf](https://github.com/junegunn/fzf) to select an +entry from the list of titles and display the full entry. + +``` sh +jrnl -on "$(jrnl --short | fzf --ansi --tac | cut -d' ' -f1,2)" +``` + ## External editors To use external editors for writing and editing journal entries, set