From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Equivalent of timeline? Date: Fri, 28 Jun 2019 15:45:46 -0700 Message-ID: References: <16b9e408edd.eaa34df81355.722998571910035472@zoho.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45105) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgzd3-0003ad-4w for emacs-orgmode@gnu.org; Fri, 28 Jun 2019 18:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgzd1-00054g-WB for emacs-orgmode@gnu.org; Fri, 28 Jun 2019 18:46:01 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:46877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgzd0-0004n7-A9 for emacs-orgmode@gnu.org; Fri, 28 Jun 2019 18:45:59 -0400 Received: by mail-lj1-x22c.google.com with SMTP id v24so7444730ljg.13 for ; Fri, 28 Jun 2019 15:45:49 -0700 (PDT) In-Reply-To: <16b9e408edd.eaa34df81355.722998571910035472@zoho.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: James Harkins Cc: emacs-orgmode i was going to code the following, and documented it first, but cannot code it. maybe it will be of smoe use in thinking about the problem. i would use text search view, as follows. i think it should be pretty small. === i think timeline (L) was retired from org because it code-rotted as org developed new features, and it only supported one file, which goes against org's sylvan (forest) philosophy. it occurred to me that text search could replace the timeline agenda view. the search is for limiting. it is not to search for timestamps. yet the whole thing shows every timestamp. === it would cover most features. it would not be limited to one file unless you restrict the agenda. it would be relatively fast. and you can limit by searching. however, it would not provide the shifted (left/right) arrow feature to change timestamps. === the thing is to show MULTIPLE timestamps as multiple lines in text search view. each has a text property that contains the timestamp that generated it. then we show the timestamps in the agenda prefix. text search view will show multiple timestamps per entry as one entry, which is not what we want. so we have to work around that. === there is a variable that is pretty late in the agenda view. it is intended for things like removing entries or modifying entries before displaying. it can be used for sorting purposes and so on. but i suspect we can add entries. this would be the key insight. === org-agenda-skip-additional-timestamps-same-entry seems to be only for the timestamp agenda, which we would not use. === you can make it cover planning (c, d, s), active/event, inactive, clocking, notes, and state changes timestamps. (provided that you have set a variable to show inactive timestamps -- this works but is a defvar -- and have log mode enabled.) however, it would not automatically generate instances of repeaters that are not already existing. it also would not automatically generate internal dates within ranges (i don't know if it would catch the endpoints, as that depends on org internals.) those don't seem critical for a first pass. perhaps org support could make it do those if it is really needed. === basically it looks like this as a custom command. (";" "text search -- sorted by time" search "" ( ;; can put date in a longer org-agenda-prefix-format ;; sort on the org-supported text property timestamp ;; (org-agenda-cmp-user-defined #'alpha-org-agenda-cmp--time) (org-agenda-sorting-strategy '(user-defined-up)))) if you want to filter by a text search, you enter that; if not, you enter . (or maybe nothing) to show all. filtering allows you to answer questions like "when were all the times i mentioned "org-mode?" "which was the first time i mentioned 'org-mode' that is significant?" which seems more useful than a huge slow list of every timestamp in your agenda and agenda text search extra files. === fwiw