I have a Bash-script that should probably be refactored into mt.
function note() {
if [ 1ドル ]; then
FILE=$NOTES_DIR/$(date +%Y-%m-%d).md
if [ 2ドル ]; then
FILE=2ドル
fi
echo 1ドル >> $FILE
fi
}
function nt() {
if [ 1ドル ]; then
CONTENT="- [ ] 1ドル"
note $CONTENT 2ドル
fi
}
alias todo="mt"
I imagine this workflow will be better if the default task directory in mt could be configured, like what I've done with note() above. For reference, NOTES_DIR is a directory called notes in my home directory.
I imagine these configuration values:
notes-dir(default is$HOME/.tasks)level(scan only level directories deep)local-level(scan local only level directories deep)output-style(choosing betweenminimalist,regular,json)
When mt new "<task description>" (maybe even n as alias) is executed, a new line is created in (notes-dir)/%Y-%m-%d.md: - [ ] <task description>. By adding -l for local, the task is added to TODO.md in the local directory or -f file.md to write to a specific file.
We should also add reading tasks from the current directory, limiting them to a level and local-level configuration. I imagine something like this:
$ mt
- Do this
- And that
- One important (local)