I liked the question and answer at emacs - org-mode: creation time range from effort estimate - Stack Overflow. It is regarding taking a scheduled item and effort estimate and producing a time range.
I wanted a slightly different result, but I can't see how to modify it (I imagine modifying to org-deadline would be easy). Instead of a Scheduled item, I wanted to act on simply a Timestamp.
In other words, (cutting, pasting and removing Scheduled: from the linked question),
* TODO Sample todo
<2014-04-18 Fr 10:00>
:PROPERTIES:
:Effort: 1h
:END:
would become
* TODO Sample todo
<2014-04-18 Fr 10:00-11:00>
:PROPERTIES:
:Effort: 1h
:END:
I considered org-time-stamp and org-add-planning-info, but with no success.
Assistance appreciated.
Related
I am new to org-mode, and I am currently learning how to use the habit/TODO features. I would like to add a repeated task that will stop after a certain number of occurrences, or up to a certain date.
If I look here, it seems I can use :PROPERTIES: as in
** TODO Shave
SCHEDULED: <2009-10-17 Sat .+2d/4d>
:PROPERTIES:
:STYLE: habit
:LAST_REPEAT: [2009-10-19 Mon 00:36]
:END:
However, C-c C-x p does not give me LAST_REPEAT option, and I was wondering what I can do.
The "LAST_REPEAT" property records when the habit was last done, it isn't "repeat up to this date". AFAICT there isn't a way of specifying to repeat something N times or up until a specific date.
When you press TAB at the Property: prompt, you get a list of possible completions, but you are not limited to them. You can always type LAST_REPEAT at the Property: prompt (and it will add it to the completion list as well).
I have a orgmode file that looks like this :
* Amanda
:PROPERTIES:
:ID: Amanda
:AMTYPE_ALL: IMPROVEMENT DEBUG NewFUNCTIONS
:AMTOOLS_ALL: MINIDB DOCPUBLISH TABLES CONSOLIDATION
:AMMAN_ALL: HMI TOOLS PROCESS
:END:
** Todo
*** TODO Evensong's magisterial work on the Amazon :science:read:BIB:
SCHEDULED: <2010-11-20 Sat>
[2010-11-16 Tue 23:11]
:PROPERTIES:
:BIB_AUTHOR: Walter Evensong
:BIB_TITLE: Mysteries of the Amazon
:BIB_PAGES: 1234
:BIB_PUBLISHER: Humbug University Press
:END:
Lots of good stuff on Brazil.
*** TODO 2 :science:read:BIB:
SCHEDULED: <2010-11-20 Sat>
[2010-11-16 Tue 23:11]
:PROPERTIES:
:BIB_AUTHOR: Walter Evensong
:BIB_TITLE: Mysteries of the Amazon
:BIB_PAGES: 1234
:BIB_PUBLISHER: Humbug University Press
:END:
Lots of good stuff on Brazil.
I would like to search first for : BIB_AUTHOR="Walter Evensong" but the following sequence leads to a blank buffer :
C-c a m
Type in minibuffer :
BIB_AUTHOR="Walter Evensong"
Result :
Two things:
C-c a m acts on agenda files, so make sure that the file is an agenda file. If it is not, you can add it temporarily with C-c [. Use C-c ] to remove it from the agenda file list afterwards if desired.
IIRC, the search string has to be inside single quotes.
I use Emacs Org mode to deal with my daily staffs. Now I use Emacs to manage some research papers. When reading the papers, I would like to take some notes as the following using the shortcut key C-c C-z or only z in the Agenda View.
When taking a new note it looks like this:
However, after completing the note taking with C-c C-c, the note is stored in the LOGBOOK under where it was taken:
The first problem is that the note itself is not highlight. The second problem is that, if I would like to revise this note, I do not know how to display it as when it was taken(just as in the first picture above, in a new buffer with highlight). It seems that I could only revise this note under the "Note taken on ..." line with no highlight plain text.
However, I am not pleased with this editing method since it should be as the same as the first picture, i.e., when the note was first created.
Thanks for your attention and help.
In addition to using subtasks (as discussed in the comments underneath the initial question in this thread), here is an alternative approach that places the notes at the tail end of a task without any blank lines between sentences. The stock org-mode has the ability to handle this -- i.e., no modifications are required (other than keywords and priority settings)
** Active [#A] 0 # Ender's Game (Orson Scott Card). :lawlist:
DEADLINE: <2014-02-22 Sat 08:00> SCHEDULED: <2014-02-22 Sat>
:PROPERTIES:
:ToodledoID: 353081871
:ToodledoFolder: TASKS
:Hash: 680920196368d9f25c95c09063243a7f
:END:
• This novel was of particular interest because . . .
• Orson Scott Card has written other books . . .
• Compare and contrast Ender's brother and sister.
(source: lawlist.com)
(source: lawlist.com)
I am using Emacs org-mode. Assume it is 2012-11-10 (today) and I have a TODO item:
**** LATER [#D] call John :phone:
SCHEDULED: <2012-07-23 Mon .+1m>
- State "DONE" from "TODO" [2012-06-23 Sat 12:21]
:PROPERTIES:
:LAST_REPEAT: [2012-06-23 Sat 12:21]
:END:
In the agenda view that I get with Ctrl-c a a this shows up as:
TODO: Sched.19x: LATER [#D] call John :phone:
and is sorted among the other items that have a SCHEDULED date 19 days ago. However, the item above has not been worked on for almost four months, so it should actually be sorted among the items SCHEDULED on <2012-07-23 Mon> (~110 days ago).
I consider this a bug, but I wanted to know whether there is any option I could try to fix that behavior. I have searched the internet for over an hour but did not find a solution.
It's not a bug but the expected behavior.
You scheduled the task with the repeated interval
SCHEDULED: <2012-07-23 Mon .+1m>
which means that the task is kinda re-scheduled every month. The last time it was 2012-10-27, 19 days ago.
You can remove the repeated interval
SCHEDULED: <2012-07-23 Mon>
then the task will be shown as scheduled 110 days ago.
I want to track habits using org-mode. For example, I want to do exercise 3 times every week. Is there a way to schedule 3 times a task every week irrespective of the date in org-mode?
You should be able to more or less do that using org habit tracking (See: Org-Habits).
To load org-habits you would need to add it to org-modules
(add-to-list 'org-modules "org-habit")
Then:
Use C-c C-s to set SCHEDULED.
Use C-c C-t to set your exercise TODO.
Use C-c C-x p to have the STYLE Property habit (add in any other properties as desired as well).
Now the lines like this should have be appended after the title:
:PROPERTIES:
:STYLE: habit
:END:
A single habit should suffice, it will not be exactly 3 times per week, but over time it will average out to such. If you use a scheduled repeater that is .+2d/3d you will be prompted to perform the habit no more often than every second day, and no less often than every 3. (This averages out to 2.9 times per week if you continue it long enough. Over 6 weeks (42 days) you would complete it at least 14 times, at most 21, or 17.5 on average. 18 times in 6 weeks would be 3x per week).
Your final habit should look something like this initially, as you complete it DONE logging will be added in and the last-repeat will be kept track of as a property:
** TODO Exercise
SCHEDULED: <2012-01-06 Fri .+2d/3d>
:PROPERTIES:
:STYLE: habit
:END:
Note: If you get the error Symbol's value as variable is void: org-modules when trying to load the org-habit module, you might want to try the following instead:
(require 'org)
(require 'org-install)
(add-to-list 'org-modules "org-habit")
You can use a timestamp with repeater interval as described in the
manual.
A timestamp may contain a _repeater interval_, indicating that it
applies not only on the given date, but again and again after a
certain interval of N days (d), weeks (w), months (m), or years
(y). The following will show up in the agenda every Wednesday:
* Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
I can't see any way to do this with one entry. The way I do similar things is to create a special TODO sequence for is, say (sequence ('HABIT' '|' 'CHECK')) with setq org-todo-keywords
Then simply write three entries, each on a week repeat
* HABIT Monday workout
DEADLINE: <2012-01-09 Mon +1w>
* HABIT Wednessday workout
DEADLINE: <2012-01-11 Wed +1w>
* HABIT Friday workout
DEADLINE: <2012-01-06 Fri +1w>
It's not that clean, but it works.