sjl/t

Integration with fzf or similar

Closed this issue · 2 comments

Thanks for the project, seems interesting. Is it possible to use fzf or any other file finder to select between list files in a folder for example? Thanks again

You can specify the tasklist to use using --list / -l and the working directory using --task-dir / -t, so a simple shellscript like this could work:

#!/bin/sh
TASK_DIR="$HOME/tasklists"
TASKFILE=$(find "$TASK_DIR" -maxdepth 1 -type f -printf "%f\n" | fzf)
t --task-dir="$TASK_DIR" --list="$TASKFILE" "$@"

Thanks!