emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: James Harkins <jamshark70@zoho.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Equivalent of timeline?
Date: Fri, 28 Jun 2019 15:45:46 -0700	[thread overview]
Message-ID: <CAJcAo8u+6JBBGCDtXv+e9a8uHysxBdu_ReGFEMwupjxx7JtJiw@mail.gmail.com> (raw)
In-Reply-To: <16b9e408edd.eaa34df81355.722998571910035472@zoho.com>

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

  reply	other threads:[~2019-06-28 22:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-28 13:22 Equivalent of timeline? James Harkins
2019-06-28 22:45 ` Samuel Wales [this message]
2019-06-29  7:53   ` James Harkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8u+6JBBGCDtXv+e9a8uHysxBdu_ReGFEMwupjxx7JtJiw@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@zoho.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).