emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Awesome! Date-tree from agenda!
@ 2010-11-24 23:11 Nathan Neff
  2010-11-25  8:00 ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Nathan Neff @ 2010-11-24 23:11 UTC (permalink / raw)
  To: emacs-orgmode

I've been looking for a way to do quick "journal" entries
for /past/ dates, and was disappointed that the Journal
capture template always used the current date.

I found out you can go to a date in the agenda, and press "k c", which
will cause any capture-template to use the date in the agenda, not today's date.
This will use the agenda's date when putting journal entries into a
file like this:

* 2010-11-17 Wednesday
** Did something in the past (I entered this from the agenda, going
back to 2010-11-17)

Cool!
http://orgmode.org/manual/Using-capture.html#Using-capture

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Awesome! Date-tree from agenda!
  2010-11-24 23:11 Awesome! Date-tree from agenda! Nathan Neff
@ 2010-11-25  8:00 ` Eric S Fraga
  2010-11-25 21:32   ` Carsten Dominik
  2010-11-26  3:08   ` Charles Cave
  0 siblings, 2 replies; 7+ messages in thread
From: Eric S Fraga @ 2010-11-25  8:00 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

Nathan Neff <nathan.neff@gmail.com> writes:

> I've been looking for a way to do quick "journal" entries
> for /past/ dates, and was disappointed that the Journal
> capture template always used the current date.
>
> I found out you can go to a date in the agenda, and press "k c", which
> will cause any capture-template to use the date in the agenda, not today's date.
> This will use the agenda's date when putting journal entries into a
> file like this:

Thanks for this.  I have always been a little frustrated by the
limitation you mention above (but obviously not frustrated enough to do
anything about it).  using the agenda view to accomplish this is
perfectly fine!
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.130.g9cc1)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Awesome! Date-tree from agenda!
  2010-11-25  8:00 ` Eric S Fraga
@ 2010-11-25 21:32   ` Carsten Dominik
  2010-11-26  7:06     ` Eric S Fraga
  2010-11-26  3:08   ` Charles Cave
  1 sibling, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2010-11-25 21:32 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode


On Nov 25, 2010, at 9:00 AM, Eric S Fraga wrote:

> Nathan Neff <nathan.neff@gmail.com> writes:
>
>> I've been looking for a way to do quick "journal" entries
>> for /past/ dates, and was disappointed that the Journal
>> capture template always used the current date.
>>
>> I found out you can go to a date in the agenda, and press "k c",  
>> which
>> will cause any capture-template to use the date in the agenda, not  
>> today's date.

Glad to hear that someone is using agenda actions.

>> This will use the agenda's date when putting journal entries into a
>> file like this:
>
> Thanks for this.  I have always been a little frustrated by the
> limitation you mention above (but obviously not frustrated enough to  
> do
> anything about it).  using the agenda view to accomplish this is
> perfectly fine!


There is now also a new capture target type

(file+datetree+prompt "path/to/file")

which will prompt you for the date (RET will still use today then....)

Hope this proves to be useful.

- Carsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Awesome! Date-tree from agenda!
  2010-11-25  8:00 ` Eric S Fraga
  2010-11-25 21:32   ` Carsten Dominik
@ 2010-11-26  3:08   ` Charles Cave
  1 sibling, 0 replies; 7+ messages in thread
From: Charles Cave @ 2010-11-26  3:08 UTC (permalink / raw)
  To: emacs-orgmode

> > I found out you can go to a date in the agenda, and press "k c", which
> > will cause any capture-template to use the date in the agenda, not today's 
date.

I tried this and it works well. Thanks for the reminder about the "k" menu.

I use the following text in my capture templates to timestamp the entries:
Added: %U"

When I added a note with capture, %U was translated to the date in the
file with a time like 00:00

 Added: [2010-11-22 Mon 00:00]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Awesome! Date-tree from agenda!
  2010-11-25 21:32   ` Carsten Dominik
@ 2010-11-26  7:06     ` Eric S Fraga
  2010-11-26 17:59       ` What is your journaling setup? (was " Tommy Kelly
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2010-11-26  7:06 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

[...]

> There is now also a new capture target type
>
> (file+datetree+prompt "path/to/file")
>
> which will prompt you for the date (RET will still use today then....)
>
> Hope this proves to be useful.
>
> - Carsten
>

Excellent!  This is perfect.  I keep a journal but I often don't
remember to add to it until the next day.  This new option makes it
trivial to put in the entry in the right place (-1 to the date prompt!).

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.134.g88bd7)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* What is your journaling setup? (was Re: Awesome! Date-tree from agenda!
  2010-11-26  7:06     ` Eric S Fraga
@ 2010-11-26 17:59       ` Tommy Kelly
  2010-11-26 18:15         ` Thomas S. Dye
  0 siblings, 1 reply; 7+ messages in thread
From: Tommy Kelly @ 2010-11-26 17:59 UTC (permalink / raw)
  To: emacs-orgmode


In response to Carsten's mention of a new capture target type, Eric
wrote: 
> Excellent!  This is perfect.  I keep a journal but ...

I'd be really interested in seeing how people use org-mode for
journaling. By journaling I'm thinking of the various ways of capturing
activity throught the day and then being able to say at some later
point, "What exactly did I spend my time on?" I guess the more important
part is deciding exactly how to slice and dice previously captured data
so as to give a historical report with the right level of detail. But
obviously that is affected by how the data is captured in the first
place. 

I'm new to org-mode so I currently have a very simple capture setup. I
have two types of capturing -- one a TODO and one just a note. And then
I have two broad classes -- personal and work. So four templates in
all. I also have it prompt me for a note if a pause on a task or
complete it.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(global-set-key (kbd "C-c c") 'org-capture)
(setq org-capture-templates
      '(	
	("t" "Todo" entry
	 (file+headline "~/org/journal.org" "Journal")
	 "\n\n** TODO %?\nSCHEDULED: %t\n%i%a\n\n\n"
	 :empty-lines 1)

	("n" "Note" entry
	 (file+headline "~/org/journal.org" "Journal")
	 "\n\n** %?\n%U\n%i%a\n\n\n"
	 :empty-lines 1)

	("p" "Personal Templates")
	("pt" "Personal Todo" entry
	 (file+headline "~/org/personal.org" "Personal Journal")
	 "\n\n** TODO %?\nSCHEDULED: %t\n%i%a\n\n\n"
	 :empty-lines 1)

	("pn" "Personal Note" entry
	 (file+headline "~/org/personal.org" "Personal Journal")
	 "\n\n** %?\n%U\n%i%a\n\n\n"
	 :empty-lines 1)
	)
      )

;; Log notes and time at various points in a task's life
(setq org-log-done 'note) ;; When we complete it
(setq org-log-note-clock-out t) ;; When we clock out
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

All TODOs are captured SCHEDULED for today, but I reschedule them
everytime I need to look at the agenda, so I keep today clean. I know
there are better ways, but I'm adding to my org-mode setup slowly, so as
not to be overwhelmed by new things.

But as I say, I'm new to this so I know there's a lot more can be done
than just the above. Also, I haven't yet figure out the best way to
create reports from the above, other than just turning on log mode and
showing inactive timestamped items in the agenda. I'd really appreciate
seeing what others have come up with.

So, anyone care to share their journaling approach?

Tommy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is your journaling setup? (was Re: Awesome! Date-tree from agenda!
  2010-11-26 17:59       ` What is your journaling setup? (was " Tommy Kelly
@ 2010-11-26 18:15         ` Thomas S. Dye
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas S. Dye @ 2010-11-26 18:15 UTC (permalink / raw)
  To: Tommy Kelly; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3210 bytes --]

Hi Tommy,

I don't know if you've seen this, but I think Bernt Hansen's setup  
will answer most of your questions:

http://doc.norang.ca/org-mode.html

I found his web site to be extremely useful.  AFAICT his setup state- 
of-the-art when it comes to keeping track of time in Org-mode.

Tom

On Nov 26, 2010, at 7:59 AM, Tommy Kelly wrote:

>
> In response to Carsten's mention of a new capture target type, Eric
> wrote:
>> Excellent!  This is perfect.  I keep a journal but ...
>
> I'd be really interested in seeing how people use org-mode for
> journaling. By journaling I'm thinking of the various ways of  
> capturing
> activity throught the day and then being able to say at some later
> point, "What exactly did I spend my time on?" I guess the more  
> important
> part is deciding exactly how to slice and dice previously captured  
> data
> so as to give a historical report with the right level of detail. But
> obviously that is affected by how the data is captured in the first
> place.
>
> I'm new to org-mode so I currently have a very simple capture setup. I
> have two types of capturing -- one a TODO and one just a note. And  
> then
> I have two broad classes -- personal and work. So four templates in
> all. I also have it prompt me for a note if a pause on a task or
> complete it.
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> (global-set-key (kbd "C-c c") 'org-capture)
> (setq org-capture-templates
>      '(	
> 	("t" "Todo" entry
> 	 (file+headline "~/org/journal.org" "Journal")
> 	 "\n\n** TODO %?\nSCHEDULED: %t\n%i%a\n\n\n"
> 	 :empty-lines 1)
>
> 	("n" "Note" entry
> 	 (file+headline "~/org/journal.org" "Journal")
> 	 "\n\n** %?\n%U\n%i%a\n\n\n"
> 	 :empty-lines 1)
>
> 	("p" "Personal Templates")
> 	("pt" "Personal Todo" entry
> 	 (file+headline "~/org/personal.org" "Personal Journal")
> 	 "\n\n** TODO %?\nSCHEDULED: %t\n%i%a\n\n\n"
> 	 :empty-lines 1)
>
> 	("pn" "Personal Note" entry
> 	 (file+headline "~/org/personal.org" "Personal Journal")
> 	 "\n\n** %?\n%U\n%i%a\n\n\n"
> 	 :empty-lines 1)
> 	)
>      )
>
> ;; Log notes and time at various points in a task's life
> (setq org-log-done 'note) ;; When we complete it
> (setq org-log-note-clock-out t) ;; When we clock out
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> All TODOs are captured SCHEDULED for today, but I reschedule them
> everytime I need to look at the agenda, so I keep today clean. I know
> there are better ways, but I'm adding to my org-mode setup slowly,  
> so as
> not to be overwhelmed by new things.
>
> But as I say, I'm new to this so I know there's a lot more can be done
> than just the above. Also, I haven't yet figure out the best way to
> create reports from the above, other than just turning on log mode and
> showing inactive timestamped items in the agenda. I'd really  
> appreciate
> seeing what others have come up with.
>
> So, anyone care to share their journaling approach?
>
> Tommy
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[-- Attachment #1.2: Type: text/html, Size: 5000 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-26 18:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24 23:11 Awesome! Date-tree from agenda! Nathan Neff
2010-11-25  8:00 ` Eric S Fraga
2010-11-25 21:32   ` Carsten Dominik
2010-11-26  7:06     ` Eric S Fraga
2010-11-26 17:59       ` What is your journaling setup? (was " Tommy Kelly
2010-11-26 18:15         ` Thomas S. Dye
2010-11-26  3:08   ` Charles Cave

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).