all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ethan <ethandbrown@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Best way to use org-mode as a work log
Date: Sun, 20 Dec 2009 07:10:35 -0800 (PST)	[thread overview]
Message-ID: <e8cb2fbc-37a7-4c30-9eee-bc880797df3c@y32g2000prd.googlegroups.com> (raw)
In-Reply-To: mailman.13224.1261299078.2239.help-gnu-emacs@gnu.org

On Dec 20, 12:51 am, Dmitri Minaev <min...@gmail.com> wrote:
> On Sat, Dec 19, 2009 at 6:47 PM, Vagn Johansen <gonz...@hotmail.com> wrote:
> > Ethan <ethandbr...@gmail.com> writes:
>
> >> Since a work log is based around daily entries, I'm wondering if
> >> anyone can recommend the best way to use org-mode for such a purpose.
>
> > I do not if it the best way but "remember templates" could be useful
> > for this.
>
> I second that. Besides, I have set up a keyboard shortcut in my window
> manager (Stumpwm) which raises the Emacs window and calls the template
> selection dialog, so I can add and entry to the log with just a few
> keystrokes.
>
> --
> With best regards,
> Dmitri Minaev
>
> Russian history blog:http://minaev.blogspot.com

Thanks for the suggestions.  I'm definitely going to read up on the
Remember Templates.  Here's how I've done my initial (very simple)
implementation:
I have a work log spanning the last 5 or so years on my current
project.  It's a plain
text file that I just edit in emacs, plain and simple.  Here is how my
work log is organized and how I've done my initial conversion to
org-mode.  My current format is of the form:
========================================
05/14/09

   Accounting system:
           Work on CSS for tables
                ** Use standard fonts!

            Design schema for SAP integration.
            ....

05/15/09
.....
05/16/09
.....
========================================

So when I start my work day, I just add the current date to the end of
the file and type away.   After reviewing the Org-mode docs and
playing around a bit I decided to just start simple and work my way
slowly into the more complex features.  I decided that my
implementation would set a top-level outline for each day and then set
the daily tasks with appropriate tags.  I needed to convert my current
work log, which contains entries from the last 5 or so years.  The
conversion was quite simple:

(1)  Replace all lines with "*" in the first character to "+" as the
first character so as not to inadvertently create an outline entry.
        M-x replace-regexp RET ^ *\* RET + RET

(2)  Replace all daily start entry lines with top-level outline
entries.  So lines of the form:

       05/15/09
    would be transformed to to lines of the form
       * Day Entry [2009-05-14]

    M-x replace-regexp RET
^\([0-9]\{1,2\}\)/\([0-9]\{1,2\}\)/\([0-9]\{2\}\) RET * Day Entry
\[20\3-\1-\2]  RET

And voila!  My work log was converted to org-mode format and I'm ready
to go.  Here's my work log for today in my new format, previous days
collapsed:

* Day Entry [2009-12-17] ...
* Day Entry [2009-12-18] ...
* Day Entry [2009-12-19]
** DONE Convert worklog to emacs .org file.        :work_organization:
  CLOSED: [2009-12-19 Sat 09:23]
*** DONE Replace all lines with * in the first character to +.
   CLOSED: [2009-12-19 Sat 09:10]
*** DONE Change all lines with starting entries XX/YY/ZZ to day
entries of the
   CLOSED: [2009-12-19 Sat 09:23]
     form * Day Entry [20ZZ-XX-YY]
       Use emacs replace-regex
         ^\([0-9]\{1,2\}\)/\([0-9]\{1,2\}\)/\([0-9]\{2\}\)
          => * Day Entry \[20\3-\1-\2]


I'm currently using KTimeTracker for doing my project time tracking,
but I'm going to read up on the org-mode timers and perhaps switch
over.

--Ethan


  parent reply	other threads:[~2009-12-20 15:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091219170750.51DEA8786E@mxperim1.sea5.speakeasy.net>
     [not found] ` <20091219103852.4D6E4166A7E@mxperim4.sea5.speakeasy.net>
2009-12-19  6:51   ` Best way to use org-mode as a work log Ethan
2009-12-19 11:31     ` tomas
2009-12-19 11:38     ` David Maus
2009-12-19 14:47     ` Vagn Johansen
2009-12-20  8:51       ` Dmitri Minaev
     [not found]       ` <mailman.13224.1261299078.2239.help-gnu-emacs@gnu.org>
2009-12-20 15:10         ` Ethan [this message]
     [not found]     ` <mailman.13203.1261222733.2239.help-gnu-emacs@gnu.org>
2009-12-19 15:51       ` Ethan
2009-12-19 23:51     ` Re " Steve Revilak
2009-12-19 15:50 Ethan Brown
2009-12-19 16:07 ` Matt Lundin
2009-12-19 18:48   ` Ethan Brown
2009-12-19 16:35 ` Mueen Nawaz
2009-12-20 16:51 ` Rick Moynihan
2009-12-20 19:41   ` Ethan Brown

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8cb2fbc-37a7-4c30-9eee-bc880797df3c@y32g2000prd.googlegroups.com \
    --to=ethandbrown@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.