Neat idea. I've been using a single huge "todo.txt" but might try out this one-TODO-a-day.
Here's a script to automate the file creation:
$ echo ~/bin/newtodo
#!/bin/shTODO_DIR=~/todos/
TODO_PREFIX="TODO-"mkdir-p$TODO_DIRcd$TODO_DIR# copy most recent* TODO file# *recent = using filename, not last edited! So filenames need to be in a sane date format, like YYYY-MM-DDRECENT_TODO=`ls-1 | head-n1`# use this if you want to use last edited instead# RECENT_TODO=`ls -1t | head -n1`# %F == YYYY-MM-DDTODO_SUFFIX=`date +"%F"`TODO_FILENAME="${TODO_PREFIX}${TODO_SUFFIX}"# if there is an existing TODO, then copy from that...if[-e"${RECENT_TODO}"];then
cp${RECENT_TODO}${TODO_FILENAME}else# ...otherwise, just create new TODOecho"TODO\n-do the thing\n\nAccomplished\n-created TODO\n">${TODO_FILENAME}fi
echo"New todo created:\n${TODO_DIR}${TODO_FILENAME}"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Neat idea. I've been using a single huge "todo.txt" but might try out this one-TODO-a-day.
Here's a script to automate the file creation:
$ echo ~/bin/newtodo