emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: search for dates as tag or property
Date: Tue, 27 Nov 2007 14:42:10 +0000	[thread overview]
Message-ID: <87prxv7nst.fsf@bzg.ath.cx> (raw)
In-Reply-To: <fibq7b$84i$1@ger.gmane.org> (Fabian Braennstroem's message of "Sun, 25 Nov 2007 13:39:36 +0000")

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> I would like to include the date in my property/tags search ...
> E.g. one entry looks like this:
>
> *** KONVERGIERT <2007-09-07 Fri>Klimakruemmer 2 /  FLUENT
>    :PROPERTIES:
>    :Bauteil:Klimakruemmer
>    :END:

Maybe something along this:

(org-add-agenda-custom-command
 '("d" tags "Bauteil={.+}"
   ((org-agenda-skip-function 
     '(org-agenda-skip-entry-if 'notregexp
     "[0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}")))))

> Is it possible to do a search, which looks for the property
> 'Bauteil' and for the month corresponding to the time stamp
> of the entry, i.e. September?

You cannot inherit a timestamp (or scheduled/deadline value) for now.
If you are using the date not only for getting this entry displayed at
the right place in the agenda view, maybe you could add a "Month"
property?  Then you can use it for searches like any other property.

> The property search is no problem, but I couldn't find any special
> syntax for the 'time stamps' search!?  Would be nice, if that works

Why not... but the agenda view is already a way to "search" for entries,
no?

-- 
Bastien

  reply	other threads:[~2007-11-27 14:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 13:39 search for dates as tag or property Fabian Braennstroem
2007-11-27 14:42 ` Bastien [this message]
2007-11-28  7:29   ` Carsten Dominik
2007-11-28 21:53     ` Fabian Braennstroem
2007-11-29  5:24       ` Carsten Dominik
2007-11-30  1:35       ` Bastien

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=87prxv7nst.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /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).