mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
Added an example showing how to integrate fzf with Todoist CLI for task filitering and preview
10
Examples.md
10
Examples.md
@@ -64,6 +64,7 @@ Table of Contents
|
|||||||
* [Transmission](#transmission)
|
* [Transmission](#transmission)
|
||||||
* [Pacman](#pacman)
|
* [Pacman](#pacman)
|
||||||
* [Copy current item to clipboard](#clipboard)
|
* [Copy current item to clipboard](#clipboard)
|
||||||
|
* [Todoist CLI](#Todoist-CLI)
|
||||||
|
|
||||||
|
|
||||||
### General
|
### 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.
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user