From 7fb4655ade42a954e9687d96dfdafb16ce254cd3 Mon Sep 17 00:00:00 2001 From: Bad3r Date: Fri, 10 Sep 2021 06:10:38 -0400 Subject: [PATCH] Added an example showing how to integrate fzf with Todoist CLI for task filitering and preview --- Examples.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Examples.md b/Examples.md index f8c6724..483a71b 100644 --- a/Examples.md +++ b/Examples.md @@ -64,6 +64,7 @@ Table of Contents * [Transmission](#transmission) * [Pacman](#pacman) * [Copy current item to clipboard](#clipboard) +* [Todoist CLI](#Todoist-CLI) ### General @@ -1744,3 +1745,12 @@ export FZF_DEFAULT_OPTS='--bind "ctrl-y:execute-silent(printf {} | cut -f 2- | w This works with `execute-silent` but not with `execute`, presumably because `execute` waits for `wl-copy` to end. Appending a `&` did not change that. + +### Todoist CLI +- Todoist CLI task filitring and preview + ```ps + ❯ todoist --namespace --project-namespace list | fzf --preview 'todoist show {1}' | cut -d ' ' -f 1 | tr '\n' ' ' + ``` + - The command used for preview is `todoist show {1}` + - The `show` option is used to show the task details + - The `{1}` represents the first feild in the line -> Task ID