From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: headline entries order. Date: Tue, 14 Apr 2009 19:17:35 -0400 Message-ID: <87ab6ij04w.fsf@gollum.intra.norang.ca> References: <18142.1239746944@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ltrsu-00072g-TG for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 19:17:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ltrsr-00072B-B1 for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 19:17:44 -0400 Received: from [199.232.76.173] (port=44357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ltrsr-000728-5o for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 19:17:41 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:64402) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ltrsq-0002G0-Tk for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 19:17:41 -0400 In-Reply-To: <18142.1239746944@gamaville.dokosmarshall.org> (Nick Dokos's message of "Tue\, 14 Apr 2009 18\:09\:04 -0400") 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: nicholas.dokos@hp.com Cc: dericbytes , emacs-orgmode@gnu.org Nick Dokos writes: > 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. > `---- Also look at the variables 'org-reverse-note-order' and 'org-log-states-order-reversed' for inserting future notes and logs in the right order. -Bernt