cideM / todo-fish

Pretty-print progress of an arbitrary number of todo.txt files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fish 🐟 Shell todo.txt parser

Super minimal todo.txt pretty-printer.

Quickstart

fisher install cideM/todo-fish
$ echo "x this is done" > todo.txt
$ echo "not done" >> todo.txt
$ echo "(A) priority" >> todo.txt
$ echo todo.txt | ftd
.
    [ ] (A) priority
    [ ] not done
$ echo todo.txt | ftd -v
.                   (1/3)
    [ ] (A) priority
    [ ] not done
    [x] this is done

Installation

Fisher

Install with Fisher (recommended):

fisher install cideM/todo-fish

Manual

This assumes that you're fish config folder is located under ~/.config/fish

curl https://raw.githubusercontent.com/cideM/todo-fish/master/functions/ftd.fish\
  -o ~/.config/fish/functions/ftd.fish

Usage

Pipe a list of file paths to ftd...

echo todo.txt | ftd

...or call with filenames

ftd todo.txt

Call it with the -v or --verbose flag for progress stats and displaying done tasks.

echo todo.txt | ftd -v

Recipes

How to show the stats for several todo.txt files

fd todo.txt | ftd

Just use whatever program generates a list of paths to todo.txt files and pipe it into ftd. Alternatively pass the file names as positional parameters:

ftd path/to/todo.txt path/to/another/todo.txt

TODO

  • Rename -v to --show-done and --show-stats
  • Accept positional params for file lists

About

Pretty-print progress of an arbitrary number of todo.txt files

License:Apache License 2.0


Languages

Language:Shell 100.0%