emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] headline entries order.


From: Nick Dokos
Subject: Re: [Orgmode] headline entries order.
Date: Tue, 14 Apr 2009 18:09:04 -0400

dericbytes <address@hidden> wrote:

> I want to reverse the entries of my logs. So the newest is at the top. I know
> there is the C-c ^ sort function, but I'm not sure if any are applicable. (Not
> all of my entries are dated)
> 

o If you are trying to rearrange headings and there is no "natural"
order, then the best I can offer is to number them by hand, use org-sort
and then strip the numbers out again. For simple cases (e.g. to reverse
the order of the entries), the numbering can be done by a program, but
you will have to write that program (I'd use an awk script.) Or you can
add dates to the entries that are missing them (interpolating between
the closest entries that *are* date-marked) - and you won't even have to
strip them out again.

o If what you are trying to do is enter your entries with org-remember and
you want to set up the template so that the new ones go at the top, this
portion of the Org manual should help:


,----
| 9.1.2 Remember templates
| ------------------------
| 
| In combination with Org, you can use templates to generate different
| types of remember notes.  For example, if you would like to use one
| template to create general TODO entries, another one for journal
| entries, and a third one for collecting random ideas, you could use:
| 
|      (setq org-remember-templates
|       '(("Todo" ?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org" "Tasks")
|         ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")
|         ("Idea" ?i "* %^{Title}\n  %i\n  %a" "~/org/JOURNAL.org" "New 
Ideas")))
| 
| In these entries, the first string is just a name, and the character
| specifies how to select the template.  It is useful if the character is
| also the first letter of the name.  The next string specifies the
| template.  Two more (optional) strings give the file in which, and the
| headline under which the new note should be stored.  The file (if not
| present or `nil') defaults to `org-default-notes-file', the heading to
| `org-remember-default-headline'.  If the file name is not an absolute
| path, it will be interpreted relative to `org-directory'.  The heading
| can also be the symbols `top' or `bottom' to send note as level 1
| entries to the beginning or end of the file, respectively.
`----

HTH,
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]