From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: ANN: org-ql agenda block support Date: Fri, 30 Aug 2019 17:20:20 -0700 Message-ID: References: <87ftmb7l27.fsf@alphapapa.net> <875zml5enu.fsf@zamazal.org> <87o907kk4i.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40733) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3r82-00014N-Hh for emacs-orgmode@gnu.org; Fri, 30 Aug 2019 20:20:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3r7z-0005Dw-C8 for emacs-orgmode@gnu.org; Fri, 30 Aug 2019 20:20:29 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:42805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3r7x-00051c-Ao for emacs-orgmode@gnu.org; Fri, 30 Aug 2019 20:20:26 -0400 Received: by mail-lj1-x22b.google.com with SMTP id l14so7951093ljj.9 for ; Fri, 30 Aug 2019 17:20:23 -0700 (PDT) In-Reply-To: <87o907kk4i.fsf@alphapapa.net> 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: Adam Porter Cc: emacs-orgmode@gnu.org thanks, looks gorgeous! i will file it for a possible future time when i can run it, diff it with existing agenda to make sure it's the same for me, and just switch over to it. (i use 2d and 7d agendas and text search view with and without inactive.) i'll ask a couple of questions. a while back i posted some notes on something that i was going to implement (but wasn't able to), because somebody asked for it, hoping that the notes would help him/her. the idea was that we can resurrect the timeline view, for all agenda files instead of only one, merely by a use of a text search custom agenda view. timestamps go where categories currently go. sorted by that ts. if an entry has more than one ts (active bare, inactive bare including on header, or planning -- other stuff requires org support), then it will get more than one agenda line. so this requires modifying that list that is there for the user to modify tasks before displaying them. can any of this stuff do that? i keep wanting this feature: do a text search and have all matching org-agenda-files outline entries show, with more than one agenda line if more than one ts in entry, sorted by that ts. so for example you search for "melatonin" (or even "." meaning all entries, such as for an agenda restriction) and then you get to see the most recent thing you did for melatonin or in that restriction at the top. and everything else you did below. (assuming reverse sort.) i can post more accurate and precise details if needed, but i wanted to know if you think your work can support this. also, does it support all the usual variables for leaders and faces and so on? it all sounds promising. more speed and beautiful sexps! what more could we ask for? :) On 8/30/19, Adam Porter wrote: > Samuel Wales writes: > >> i have been watching these developments with interest. i want a >> faster 2-day agenda, and really like the idea of a lisp syntax for >> querying, perhaps one that can combine text search with structured. >> >> so just so it's known that there is otherwise silent interest. >> limited in computer use so cannot switch but following. > > I appreciate the feedback nonetheless. > > A two-day agenda could be done something like this: > > (org-ql-agenda (org-agenda-files) > (and (or (deadline :from today :to +1) > (scheduled :from today :to +1) > (ts-active :from today :to +1)) > (not (done))) > :sort (date priority todo) > :super-groups ((:auto-planning t))) > > To show deadlined entries taking org-deadline-warning-days into account, > more like the traditional Org Agenda, use (deadline auto), like: > > (org-ql-agenda (org-agenda-files) > (and (or (deadline auto) > (scheduled :from today :to +1) > (ts-active :from today :to +1)) > (not (done))) > :sort (date priority todo) > :super-groups ((:auto-planning t))) > > Grouping by date in this example is done with the org-super-agenda > :auto-planning selector, which uses the earliest planning timestamp in > an entry. So it's not exactly like Org Agenda, but it approximates what > you're asking for, and org-ql's built-in caching may provide a speedup > for subsequent calls. > > Here's an example that's similar to the Org Agenda's Log Mode: > > (org-ql-agenda > (or (and (not (done)) > (or (habit) > (deadline auto) > (scheduled :to today) > (ts-active :on today))) > (closed :on today)) > :sort (date priority todo)) > > > > -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time.