all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Todo Templates
@ 2008-03-21 16:48 Russell Adams
  2008-03-21 17:20 ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Russell Adams @ 2008-03-21 16:48 UTC (permalink / raw)
  To: Emacs-orgmode

One more. ;]

So I'm setting up a sample project using column view to experiment
with durations, assignment, etc.

I've noticed that I'm duplicating my property drawer manually, and was
curious if there is a way to setup a default property drawer for new
items or a new todo hook I can tap into.

Thanks.

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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

* Re: Todo Templates
  2008-03-21 16:48 Todo Templates Russell Adams
@ 2008-03-21 17:20 ` Bernt Hansen
  2008-03-21 17:42   ` Russell Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2008-03-21 17:20 UTC (permalink / raw)
  To: Emacs-orgmode

Russell Adams <RLAdams@AdamsInfoServ.Com> writes:

> So I'm setting up a sample project using column view to experiment
> with durations, assignment, etc.
>
> I've noticed that I'm duplicating my property drawer manually, and was
> curious if there is a way to setup a default property drawer for new
> items or a new todo hook I can tap into.

If you use column view (C-c C-x C-c) and enter durations it creates
property drawers in tasks that don't already have them.

There's also a function org-insert-property-drawer.

I've got the following setup:

(setq org-global-properties '(("Effort_ALL" . "0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00")))
(setq org-columns-default-format "%40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM")

and I just C-c C-x C-c on a parent task and use S-right to assign the
effort durations to each task.

HTH,
Bernt

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

* Re: Re: Todo Templates
  2008-03-21 17:20 ` Bernt Hansen
@ 2008-03-21 17:42   ` Russell Adams
  2008-03-21 19:09     ` Bernt Hansen
                       ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Russell Adams @ 2008-03-21 17:42 UTC (permalink / raw)
  To: emacs-orgmode

I completely overlooked the fact that in column mode editing an item
with no properties creates those properties.

Thats 90% of the way there.

Is there a way to specify a default?

On Fri, Mar 21, 2008 at 01:20:04PM -0400, Bernt Hansen wrote:
> Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
> 
> > So I'm setting up a sample project using column view to experiment
> > with durations, assignment, etc.
> >
> > I've noticed that I'm duplicating my property drawer manually, and was
> > curious if there is a way to setup a default property drawer for new
> > items or a new todo hook I can tap into.
> 
> If you use column view (C-c C-x C-c) and enter durations it creates
> property drawers in tasks that don't already have them.
> 
> There's also a function org-insert-property-drawer.
> 
> I've got the following setup:
> 
> (setq org-global-properties '(("Effort_ALL" . "0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00")))
> (setq org-columns-default-format "%40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM")
> 
> and I just C-c C-x C-c on a parent task and use S-right to assign the
> effort durations to each task.
> 
> HTH,
> Bernt
> 
> 
> _______________________________________________
> 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


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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

* Re: Todo Templates
  2008-03-21 17:42   ` Russell Adams
@ 2008-03-21 19:09     ` Bernt Hansen
  2008-03-22 17:23     ` Carsten Dominik
  2008-03-23 13:13     ` Carsten Dominik
  2 siblings, 0 replies; 6+ messages in thread
From: Bernt Hansen @ 2008-03-21 19:09 UTC (permalink / raw)
  To: emacs-orgmode

Russell Adams <RLAdams@AdamsInfoServ.Com> writes:

> I completely overlooked the fact that in column mode editing an item
> with no properties creates those properties.
>
> Thats 90% of the way there.
>
> Is there a way to specify a default?

I don't know of a way to specify a default currently but I may have
missed something - org-mode has so many useful features :)

Bernt

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

* Re: Re: Todo Templates
  2008-03-21 17:42   ` Russell Adams
  2008-03-21 19:09     ` Bernt Hansen
@ 2008-03-22 17:23     ` Carsten Dominik
  2008-03-23 13:13     ` Carsten Dominik
  2 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2008-03-22 17:23 UTC (permalink / raw)
  To: Russell Adams; +Cc: emacs-orgmode


On Mar 21, 2008, at 6:42 PM, Russell Adams wrote:

> I completely overlooked the fact that in column mode editing an item
> with no properties creates those properties.
>
> Thats 90% of the way there.
>
> Is there a way to specify a default?

Hmmm.  In principle there is, because you can make a property
use inheritance and define a default for the inheritance, just like  
Bernt has shown
in his example for the EFFORT_ALL property.

However, since the EFFORT property is a summary property, I think  
inheritance would be a problem.

So the answer is no there is no good way to define a default value.  I  
will put some thought into this, to see if this could be done in a  
useful way.

Maybe you can use a template to insert new entries with the property  
already defined?

- Carsten

>
>
> On Fri, Mar 21, 2008 at 01:20:04PM -0400, Bernt Hansen wrote:
>> Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
>>
>>> So I'm setting up a sample project using column view to experiment
>>> with durations, assignment, etc.
>>>
>>> I've noticed that I'm duplicating my property drawer manually, and  
>>> was
>>> curious if there is a way to setup a default property drawer for new
>>> items or a new todo hook I can tap into.
>>
>> If you use column view (C-c C-x C-c) and enter durations it creates
>> property drawers in tasks that don't already have them.
>>
>> There's also a function org-insert-property-drawer.
>>
>> I've got the following setup:
>>
>> (setq org-global-properties '(("Effort_ALL" . "0 0:10 0:30 1:00  
>> 2:00 3:00 4:00 5:00 6:00 7:00 8:00")))
>> (setq org-columns-default-format "%40ITEM(Task) %17Effort(Estimated  
>> Effort){:} %CLOCKSUM")
>>
>> and I just C-c C-x C-c on a parent task and use S-right to assign the
>> effort durations to each task.
>>
>> HTH,
>> Bernt
>>
>>
>> _______________________________________________
>> 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
>
>
> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> _______________________________________________
> 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

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

* Re: Re: Todo Templates
  2008-03-21 17:42   ` Russell Adams
  2008-03-21 19:09     ` Bernt Hansen
  2008-03-22 17:23     ` Carsten Dominik
@ 2008-03-23 13:13     ` Carsten Dominik
  2 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2008-03-23 13:13 UTC (permalink / raw)
  To: Russell Adams; +Cc: emacs-orgmode


On Mar 21, 2008, at 6:42 PM, Russell Adams wrote:

> I completely overlooked the fact that in column mode editing an item
> with no properties creates those properties.
>
> Thats 90% of the way there.
>
> Is there a way to specify a default?


Hi Russel,

I am coming down on the side that there should be no default, because  
it would require to create the property drawer automatically, without  
any user action.  It sem to me that the way Bernt was describing, with  
and EFFORT_ALL global property and using S-right to switch values is a  
good way of getting to a default fast.

- Carsten

>
>
> On Fri, Mar 21, 2008 at 01:20:04PM -0400, Bernt Hansen wrote:
>> Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
>>
>>> So I'm setting up a sample project using column view to experiment
>>> with durations, assignment, etc.
>>>
>>> I've noticed that I'm duplicating my property drawer manually, and  
>>> was
>>> curious if there is a way to setup a default property drawer for new
>>> items or a new todo hook I can tap into.
>>
>> If you use column view (C-c C-x C-c) and enter durations it creates
>> property drawers in tasks that don't already have them.
>>
>> There's also a function org-insert-property-drawer.
>>
>> I've got the following setup:
>>
>> (setq org-global-properties '(("Effort_ALL" . "0 0:10 0:30 1:00  
>> 2:00 3:00 4:00 5:00 6:00 7:00 8:00")))
>> (setq org-columns-default-format "%40ITEM(Task) %17Effort(Estimated  
>> Effort){:} %CLOCKSUM")
>>
>> and I just C-c C-x C-c on a parent task and use S-right to assign the
>> effort durations to each task.
>>
>> HTH,
>> Bernt
>>
>>
>> _______________________________________________
>> 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
>
>
> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> _______________________________________________
> 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

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

end of thread, other threads:[~2008-03-23 13:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 16:48 Todo Templates Russell Adams
2008-03-21 17:20 ` Bernt Hansen
2008-03-21 17:42   ` Russell Adams
2008-03-21 19:09     ` Bernt Hansen
2008-03-22 17:23     ` Carsten Dominik
2008-03-23 13:13     ` Carsten Dominik

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.