From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: Todo balance motivation
Date: Mon, 7 Nov 2011 17:57:46 +0100 [thread overview]
Message-ID: <2011-11-07T17-50-56@devnull.Karl-Voit.at> (raw)
Hi!
I am using a shell script to generate a simple todo overview
showing these information:
,----[ results of today and yesterday ]
| vk@gary ~all/org-mode (git)-[master] % ./vkorgtaskratio.sh
| 2011-11-07: 3 created - 7 done = -4 sum
| Congratulations! More solved than generated!
| vk@gary ~all/org-mode (git)-[master] % ./vkorgtaskratio.sh 2011-11-06
| 2011-11-06: 4 created - 0 done = 4 sum
| Sorry, you still have to solve 4 issues to get even!
| vk@gary ~all/org-mode (git)-[master] %
`----
My general goal ist to close more issues than open new one per day.
Is this kind of functionality available in Org-mode somewhere or
should I stick to my script?
To all those who want to use my script:
,----[ vkorgbalance.sh ]
| #!/bin/sh
|
| FILEPATTERN="*org *archive" ## which files to search in
| ORGMODEDIR="~/share/all/org-mode/" ## where org-mode files life
|
| if [ "${1}x" = "x" ]; then
| ## set day to today
| DAY=`date +%Y-%m-%d`
| else
| ## using $1 as daystamp
| DAY="${1}"
| ## FIXXME: add check, if $1 is a valid daystamp
| fi
|
| cd "${ORGMODEDIR}"
| created=`egrep ":CREATED: .${DAY}" ${FILEPATTERN}|wc -l`
| closed=`egrep "CLOSED: .${DAY}" ${FILEPATTERN}|wc -l`
| sum=$(($created-$closed))
|
| echo "${DAY}: ${created} created - ${closed} done = ${sum} sum"
|
| ## generating the motivation messages
| if [ "${sum}" -lt 0 ]; then
| echo "Congratulations! More solved than generated!"
| else
| echo "Sorry, you still have to solve ${sum} issues to get even!"
| fi
|
| #end
`----
--
Karl Voit
reply other threads:[~2011-11-07 16:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2011-11-07T17-50-56@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).