From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: headline entries order. Date: Tue, 14 Apr 2009 18:09:04 -0400 Message-ID: <18142.1239746944@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ltqpq-0004N7-E5 for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 18:10:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ltqpp-0004Mv-Od for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 18:10:30 -0400 Received: from [199.232.76.173] (port=56861 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ltqpp-0004Ms-MY for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 18:10:29 -0400 Received: from qmta15.emeryville.ca.mail.comcast.net ([76.96.27.228]:34542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ltqpp-0002zP-8b for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 18:10:29 -0400 In-Reply-To: Message from dericbytes of "Tue, 14 Apr 2009 20:24:58 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dericbytes Cc: emacs-orgmode@gnu.org dericbytes 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