From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Antipin Subject: Re: timer for a task Date: Mon, 25 May 2009 17:43:36 +0200 Message-ID: <61176df0905250843n3da682c2xc46280c7b6c24670@mail.gmail.com> References: <61176df0905250140l1e9a4d7cjfa1de41011b358a9@mail.gmail.com> <87k545h6v4.fsf@CPU107.opentrends.net> <61176df0905250330k4a21837bv755defde84297f69@mail.gmail.com> <938fae2d0905250344i71979176yc7f0b6e47380ce6f@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001636457e1637497f046abe79b3 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8cL2-0005vW-9A for emacs-orgmode@gnu.org; Mon, 25 May 2009 11:43:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8cKw-0005tH-UA for emacs-orgmode@gnu.org; Mon, 25 May 2009 11:43:43 -0400 Received: from [199.232.76.173] (port=49466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8cKw-0005t8-Nd for emacs-orgmode@gnu.org; Mon, 25 May 2009 11:43:38 -0400 Received: from mail-bw0-f161.google.com ([209.85.218.161]:59112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8cKw-0003cY-13 for emacs-orgmode@gnu.org; Mon, 25 May 2009 11:43:38 -0400 Received: by bwz5 with SMTP id 5so3358664bwz.42 for ; Mon, 25 May 2009 08:43:37 -0700 (PDT) In-Reply-To: <938fae2d0905250344i71979176yc7f0b6e47380ce6f@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eraldo Helal Cc: emacs-orgmode@gnu.org --001636457e1637497f046abe79b3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Here is the patch to org-clock.el that does show estimated effort in the mode-line if it is set. Like so: 01:20/01:30 (clocked time/estimated time) It does it by: * Setting new variable org-clock-effort in org-clock-in function. * If org-clock-effort is not nil, show estimated effort in the mode-lin= e. I would like to go further and do the following: * Make a beep/or highlight if we spend more time on a task that initially intended * As proposed by Daniel, give user an option to see total time, spend on the task instead of currently clocked time. Does somebody else need this? Will this changes be accepted to the orgmode-core? I just saw that in order to contribute, you need to sign some papers.. Is this the only way? I am new to open-source, so I am not really familiar with such things. best, Konstantin On Mon, May 25, 2009 at 12:44 PM, Eraldo Helal wrote: > Sounds good to me. > > Eraldo > > On Mon, May 25, 2009 at 12:30, Konstantin Antipin > wrote: >> Hi Daniel, >> Yes, you are right indeed. I am talking about effort estimates - I'v >> missed this chapter for some reason from the manual. >> I like the idea you proposed - to show how much time is left in the >> mode line. And I think I am going to write necessary code for this. >> >> Or, may be someone has even better idea? >> >> best, >> Konstantin >> >> On Mon, May 25, 2009 at 11:25 AM, Daniel Clemente wr= ote: >>> >>> Hi. >>> =A0I suppose you talk about estimated efforts. I also have noticed that= I work better if I have defined them, but it is very easy to miss them and= work on a task more time than planned. >>> =A0An easy improvement would be to show at the mode line not only how m= uch time you have worked on the current task but also the remaining time ac= cording to your effort estimate. And if it comes to 0, highlight it noticea= bly. >>> >>> =A0Other useful things to show would be the *total* elapsed time (not o= nly the elapsed time of the last C-c C-x C-i) or directly the effort estima= te (instead of the remaining time, the total time). >>> >>> =A0And as you say, an alarm would be useful. >>> >>> -- Daniel >>> >>> El dl, mai 25 2009, Konstantin Antipin va escriure: >>>> Hi everybody! >>>> I am constantly trying to be more productive, and there is one thing >>>> that I noticed: >>>> If you give yourself a specific time for a task, then you tend to >>>> finish this task in this time. It helps to stay focused and do stuff >>>> that is most important. >>>> >>>> So, the question is - Is there any way to set a timer on a taks, and >>>> get a bell when it is expired? >>>> Some time before I even wrote a small extension that helps me to do >>>> that http://www.emacswiki.org/emacs/tea-time >>>> But now I am thinking - is there an orgmode-way to do that? It would >>>> be great to integrate it with great time tracking system, for >>>> example... >>>> If nobody uses proposed feature, please give me a hint how it would be >>>> best to do that. >>>> >>>> >>>> my best, >>>> Konstantin >>>> >>>> >>>> _______________________________________________ >>>> Emacs-orgmode mailing list >>>> Remember: use `Reply All' to send replies to the list. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > --001636457e1637497f046abe79b3 Content-Type: text/x-patch; charset=US-ASCII; name="clock-efforts.patch" Content-Disposition: attachment; filename="clock-efforts.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fv5c10gi0 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWNsb2NrLmVsIGIvbGlzcC9vcmctY2xvY2suZWwKaW5kZXgg ODdjYTE4MC4uNDQ1YTMzNiAxMDA2NDQKLS0tIGEvbGlzcC9vcmctY2xvY2suZWwKKysrIGIvbGlz cC9vcmctY2xvY2suZWwKQEAgLTE1OCw2ICsxNTgsOSBAQCBBbGwgdGhpcyBkZXBlbmRzIG9uIHJ1 bm5pbmcgYG9yZy1jbG9jay1wZXJzaXN0ZW5jZS1pbnNpbnVhdGUnIGluIC5lbWFjcyIKIChkZWZ2 YXIgb3JnLWNsb2NrLWhlYWRpbmctZm9yLXJlbWVtYmVyICIiKQogKGRlZnZhciBvcmctY2xvY2st c3RhcnQtdGltZSAiIikKIAorKGRlZnZhciBvcmctY2xvY2stZWZmb3J0ICIiIAorICAiRWZmb3J0 IGVzdGltYXRlIG9mIHRoZSBjdXJyZW50bHkgY2xvY2tpbmcgdGFzayIpCisKIChkZWZ2YXIgb3Jn LWNsb2NrLWhpc3RvcnkgbmlsCiAgICJMaXN0IG9mIG1hcmtlciBwb2ludGluZyB0byByZWNlbnQg Y2xvY2tlZCB0YXNrc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2st bWFya2VyIChwb2ludCkgKGJ1ZmZlci1iYXNlLWJ1ZmZlcikpCg== --001636457e1637497f046abe79b3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --001636457e1637497f046abe79b3--