Ok, I haven't used org mode import. Seems like you wouldn't want the timestamps in the header, all you'd see in the tree view would be the timestamps. Two possible approaches: - write a small piece of code to sort the nodes based on the timestamps in the body content. - import the org file taking advantage of Leo's todo plugin, which has date due fields and ui options to sort by them Cheers -Terry From: Israel Hands <alist...@mcgh.ee> To: leo-editor <leo-editor@googlegroups.com> Cc: terry_n_br...@yahoo.com Sent: Tuesday, December 20, 2016 10:01 AM Subject: Re: Org Mode File - Node sorted by time stamp
Thanks Terry and Rob! I realise I wasn't clear enough in my original post. Org mode allows todo items to be entered into a file in any order but they can include a timestamp of their 'scheduled' time (and indeed a separate deadline timestamp). In the orgmode Agenda view the items are then inserted in to a linear calendar, turning the unordered org file into a powerful calendar/todo list. So one of my org mode items is - Breakfast with James - it has a scheduled time and I have chosen to set a deadline. When I choose Agenda view in orgmode I see the item has a deadline in today's date and the item itself appears in the calendar for tomorrow.Imported into leo I get a nice node with the headline - Breakfast with James - and the body text is the two time stamps - the deadline is Tuesday the 20th (to remind me it is tomorrow) and then the scheduled time of the event Wednesday the 21st at 10am. The node body looks like this = DEADLINE: <2016-12-20 Tue 09:00><2016-12-21 Wed 10:00> However the nodes are listed according to their place in the orgmode file (in creation order) rather than schedule order. I guess it would require digging out these scheduled times and maybe writing them into the header which would then make it easy to sort the nodes. Anyway thanks for your attention.IH On Tuesday, 20 December 2016 15:07:39 UTC, Terry Brown wrote: Depends what you mean by timestamps. If you mean a piece of text in the header, one of the Outline -> Sort commands should work. If you mean sort by the internal "gnx" ID attribute of the nodes, which contains timestamp information, I don't think there's a command to actually re-order nodes on that basis. But there is a commandfind-quick-timeline which displays all the nodes in the outline in the Nav pane, ordered most recently created to oldest. Maybe that helps? find-quick-timeline uses the gnx info. Cheers -Terry From: Israel Hands <alis...@mcgh.ee> To: leo-editor <leo-e...@googlegroups.com> Sent: Tuesday, December 20, 2016 7:23 AM Subject: Org Mode File - Node sorted by time stamp I use OrgMode's Agenda view as my basic calendar and it's great to be able to import the org files into leo, is there a way of sorting the imported nodes by time stamp, other than writing a bit of code to accomplish the task? ta Al-- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@ googlegroups.com. To post to this group, send email to leo-e...@googlegroups.com. Visit this group at https://groups.google.com/ group/leo-editor. For more options, visit https://groups.google.com/d/ optout. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.