From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: exporting just timestamped entries from an agenda Date: Thu, 31 Dec 2015 14:51:07 +1100 Message-ID: <22148.42539.51155.356570@localhost.localdomain> References: <22147.32099.579573.677738@localhost.localdomain> Reply-To: prayner@unimelb.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEUGf-0005db-UX for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 22:51:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEUGc-0005ui-O6 for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 22:51:13 -0500 Received: from mail-gw2.its.unimelb.edu.au ([128.250.5.151]:38368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEUGc-0005rk-5Y for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 22:51:10 -0500 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: prayner@unimelb.edu.au, emacs-orgmode Hi John, almost solves the problem, the catch is entries like: ** Norton my office <2015-03-11 Wed 10:00 +1w> The date range searches in either the sparse tree or the tag-property match searches don't seem to calculate out repeating dates ... fair enough that's probably quite an overhead. I'll look at adding a filter for active timestamps to agenda filtering. regards Peter John Hendy writes: >On Wed, Dec 30, 2015 at 12:44 AM, wrote: >> I keep my diary, action items, scheduled tasks etc in a single >> org-mode file. It contains things like: >> >> ** Norton my office <2015-03-11 Wed 10:00 +1w> >> ** TODO power bill :home: >> DEADLINE: <2015-12-29 Tue> >> ** TODO review business manager PD >> SCHEDULED: <2015-12-27 Sun> >> >> and lots of others. >> I would like to share a version of my agenda for each week with colleagues, perhaps >> even interface it with the exchange web services used by my >> organization. The first task is to select only those entries with >> active timestamps that fall within the week. >> My first attempt is a tag-search query like: >> TIMESTAMP>"<-1d>"&TIMESTAMP<"<+7d>" >> but that doesn't pick up the repeated entries. >> >> The other approach I can see is agenda filtering. I can filter by tag >> and hence remove the entry with :home: but I can't see how to remove >> the item with a SCHEDULED date but no specific time to happen. Is >> there a simple workaround or should I use a richer set of tags to >> accomplish this? >> thanks again >> Peter > >Your request reminded me of something I was trying to do at one point. >I thought it was something simlar for a custom agenda view, but after >a fair bit of searching, it was for a sparse tree filter for inactive >time stamps (active already existed). So, maybe there's a 3rd way you >could get the format/data you want from an org file? > >Perhaps you could try the following on your file? >- C-c / (opens sparse tree search) >- press =c= to toggle to "only active timestamps" >- press =D= to trigger the date range search >- select your start/end range > >If that works, maybe someone could help you automate it as some sort >of query function. > >For a test, I created the following: > >#+begin_example >* tasks >** todo 1 > SCHEDULED: <2015-12-23 Wed> >** todo 2 > DEADLINE: <2015-12-23 Wed> >** todo 3 >[2015-12-23 Wed] >** todo 4 > SCHEDULED: <2015-12-30 Wed> >** todo 5 > DEADLINE: <2015-12-30 Wed> >** todo 6 >[2015-12-30 Wed] >** todo 7 > SCHEDULED: <2016-01-06 Wed> >** todo 8 > DEADLINE: <2016-01-06 Wed> >** todo 9 >[2016-01-06 Wed] >** todo 10 > SCHEDULED: <2016-01-13 Wed> >** todo 11 > DEADLINE: <2016-01-13 Wed> >** todo 12 >[2016-01-13 Wed] >#+end_example > > >Using the method above and selecting 12/30 -> 1/6 yields: > >#+begin_example >* tasks >** todo 4 > SCHEDULED: <2015-12-30 Wed> >** todo 5 > DEADLINE: <2015-12-30 Wed> >... >#+end_example > > >If I extend to 1/7, I get: > >#+begin_example >* tasks >** todo 4 > SCHEDULED: <2015-12-30 Wed> >** todo 5 > DEADLINE: <2015-12-30 Wed> >... >** todo 7 > SCHEDULED: <2016-01-06 Wed> >** todo 8 > DEADLINE: <2016-01-06 Wed> >... >#+end_example > > >Would that work? I used =C-c C-x v= (copy visible text) to produce the >above. It doesn't actually copy the ellipses; I just added them to >reproduce what I see. > > >Hope that helps! >John > > >> >> -- >> Peter Rayner >> Leader, Clean Air and Urban Landscapes NESP hub >> room 343 >> School of Earth Sciences, University of Melbourne, 3010, Vic, Australia >> tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 >> mobile +61 402 752 379, skype: petermorag >> mail-to: prayner@unimelb.edu.au TWITTER: @raynerstrings >> google scholar profile >> -- Peter Rayner Leader, Clean Air and Urban Landscapes NESP hub room 343 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 mobile +61 402 752 379, skype: petermorag mail-to: prayner@unimelb.edu.au TWITTER: @raynerstrings google scholar profile