AnthonyDiGirolamo / todotxt-machine

an interactive terminal based todo.txt file editor with an interface similar to mutt
https://pypi.python.org/pypi/todotxt-machine/
GNU General Public License v3.0
244 stars 37 forks source link

Prefilled Entries #23

Open Querschlag opened 9 years ago

Querschlag commented 9 years ago

I just quit using jdotxt as my main tool for editing todotxt files and it's way faster and usable. However one thing I'm missing are default values for new entries. For example when I'm using various filter on my todo list it would be cool to have these already filled in when creating a new todo list entry - yeah, I know about auto completion ;) I also couldn't find a way to add the current date to freshly created entries. Adding the date via a command or automatically would also be a huge help.

kespindler commented 8 years ago

hey @Querschlag this is a great idea. Are you still interested in this feature? do you have a spec in mind for this? In my branch, I started creating macros which expand into fields in the item. Example, !t gets replayed with due:<today>. I'm wondering if you have a similar or different idea in mind?

Querschlag commented 8 years ago

It's been a while, but I'm still using todotxt-machine and haven't implemented this myself, so yeah ;)

The kind of prefill I had in mind were the currently filtered project and context when creating a new entry. So say if I applied a filter like "@ContextA, +ProjectB" these values should already in place when hitting "n" to create a new entry, as well as the current date.

Your macro would be a prefect addition to quickly insert values that could not be inferred.