I would like to use org-mode not with a GTD-like system but rather as a planner/scheduler, scheduling/timestamping every captured task on capture or refile. In such a system, detailed planning of a day including specific frames of times according to the estimated duration a task will take to get done, might be advantageous.
Would it be possible to generate a time frame from an existing effort estimate property when a timestamp is created? This would mean that, when a) scheduling is called and b) I enter not only a date but also a time and c) an effort property exists, this time will automatically be turned into a time frame according to said property.
Some hints as to how this could be achieved would be more than enough, I just do not know enough elisp to get started.
Edit
after capturing the task in my refile.org would look like this:
* TODO Sample todo
:PROPERTIES:
:Effort: 1h
:END:
now when refiling I look at it and decide that I will do it, say, on Friday at 10am:
* TODO Sample todo
SCHEDULED: <2014-04-18 Fr 10:00>
:PROPERTIES:
:Effort: 1h
:END:
the function that could be called now would automatically add a time range according to effort estimate:
* TODO Sample todo
SCHEDULED: <2014-04-18 Fr 10:00-11:00>
:PROPERTIES:
:Effort: 1h
:END:
Edit2
See lawlists accepted answer below for a robust solution
elisp
format. Otherwise, someone will do a draft and then you may ask for revisions . . . because it wasn't exactly clear what the end result will look like. – Penuche(setq org-global-properties '(("Effort_ALL". "0 0:10 0:30 1:00 2:00 3:00 4:00")))
. If we use1h
, then we need a transform function like(car (split-string "1h" "h"))
If we use minutes (e.g., "15m"), then we need a different transform function like(car (split-string "15m" "m"))
. Can you please give me a link to the org-mode documentation that supports theeffort
format ofh
andm
, or provide a list of all formats that you anticipate using. Alternatively, you could use the first method (above). – Penuche