From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yHS5CWb4+F5QegAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 20:07:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cEqVBWb4+F46GgAA1q6Kng (envelope-from ) for ; Sun, 28 Jun 2020 20:07:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AFBE69407C5 for ; Sun, 28 Jun 2020 20:07:01 +0000 (UTC) Received: from localhost ([::1]:52124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpdZs-0000w2-Mg for larch@yhetil.org; Sun, 28 Jun 2020 16:07:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpdYG-00009h-J7 for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 16:05:20 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:34785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpdYE-00026R-RR for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 16:05:20 -0400 Received: by mail-lj1-x22d.google.com with SMTP id q7so2556854ljm.1 for ; Sun, 28 Jun 2020 13:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=TnEjOjBay3HbVQXUInETd/SoJnqbIb+g1XrcKktpSdk=; b=mTzEdLFS+lpAhJFzp2pWBAsWhemrc2rjAJXImgqSBTft3GydnqmAR9Z+QrAR6/3A3N ylrk8uMo5WOGCXwKHjbUXV4/deBL3khGHligS28TfAEC9RuFLfVOlXP3mlN7dRuHDk2j Be4R7foUXnVJuEGwnZyLIN3IXhNxXz3bfiyttnFZIBuschnwh484Bxh2iWpUiBQvhFii rCeWTpxmhUq62Jlw9F37VPhKePAdvW5+hUOtXR8SFrKAM2zYd86sR/fjqnO3wx7CApBF Twcpcpi6DfcJbgj5xfa8nl0V6IvgYnIFFvrEd7Sck/ddrapt1uFyLJR6FaurIrZ6xOxw QBWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TnEjOjBay3HbVQXUInETd/SoJnqbIb+g1XrcKktpSdk=; b=TmmPQuW4U3WCAVNX/u4V7oecAUXXJmn+yft9SKpXZQwLjepDCIsu7iHsHdqpCUrN0w l3MTaQbOnSbALCO5wZYTbNjbYcxR809+zmD1ZnRLS1dOzLPJVsGRYc3kDDAyej5bf1oa k8G14RRnrNpfHpXBGB3FUxcw2Av76bxmHm56AwI/xRUvhlzMHY8o6qtYUR+jb/8Mjdga mCxlBse6JGQJuOBklWJf36iEb9nuDQ/ZOSg7LiPUXmWKxBuUra5YgSZajZibfNWW7s2X FNWhYBPtDybLaMfYwVSNM6hObPcMCWvzKTxOfD/CHlatJXp/TmgVkEinBUljC2uLPWcK E8hg== X-Gm-Message-State: AOAM532ryfh/RJUsLGfG4akVx3BeagvSOpVV6wOeYS6xpqkVFnzCFGhW +Vhn9BX0mkXq9Non6yXrN/440SyquTzzZKK3IHn2dkY= X-Google-Smtp-Source: ABdhPJzC/KMGfsv1BwDAICUZYcYIDiWL6i6godv/RivroE1JuWJF0sNez74D1kIJQxiQB+jMUlg99QtDjCdcp+z3ZZI= X-Received: by 2002:a2e:b60e:: with SMTP id r14mr6734530ljn.84.1593374716142; Sun, 28 Jun 2020 13:05:16 -0700 (PDT) MIME-Version: 1.0 From: Nathan Neff Date: Sun, 28 Jun 2020 15:05:05 -0500 Message-ID: Subject: Using regular expressions in custom agenda views To: emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000f3280905a92a751d" Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=nathan.neff@gmail.com; helo=mail-lj1-x22d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=mTzEdLFS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: tPfO9ewzDeQ8 --000000000000f3280905a92a751d Content-Type: text/plain; charset="UTF-8" I'm having a difficult time using regular expressions in custom "tags-todo" agenda views. Is it possible to create custom agenda views using regular expressions, and if so, do I need to escape certain characters? I can't get a simple regex like this to work, so I'm suspecting that I'm doing something wrong or, it's simply not possible to create custom agenda views that use regular expressions to search for tags. For example, this expression doesn't even find headings with :projectA: as a tag (setq org-agenda-custom-commands '( ("1" tags-todo "{projectA}"))) I have the regex surrounded in {} because of the documentation about doing a tags search - do I need those when using a custom agenda view? The info page says: "The second parameter is the search type followed by the string or regular expression to be used for the matching" - how do I specify a regular expression versus a simple string? This attempt gives me back a bunch of headings that simply match :project: but have no capital A anywhere in the tags. (setq org-agenda-custom-commands '( ("1" tags-todo "project[A]"))) Any help appreciated Thanks, --Nate --000000000000f3280905a92a751d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm having a difficu= lt time using regular expressions in custom
"tags-todo" agend= a views.

Is it possible to create custom agenda vi= ews using regular expressions,
and if so, do I need to escape cer= tain characters?

I can't get a simple regex li= ke this to work, so I'm suspecting that
I'm doing somethi= ng wrong or, it's simply not possible to create custom
agenda= views that use regular expressions to search for tags.

For example, this expression doesn't even find headings with :pro= jectA:
as a tag

=C2=A0 (setq org-ag= enda-custom-commands=C2=A0
=C2=A0 '(
=C2=A0 =C2=A0 = =C2=A0("1" tags-todo "{projectA}")))
I have the regex surrounded in {} because of the documentation= about doing
a tags search - do I need those when using a custom = agenda view?

The info page says:
"T= he second parameter is the search type followed by the string or regular ex= pression
to be used for the matching" - how do I specify a r= egular expression versus a simple
string?

This attempt g= ives me back a bunch of headings that simply match :project: but have no
capital A anywhere in the tags.
=C2=A0 (setq org-age= nda-custom-commands
=C2=A0 '(
=C2=A0 =C2=A0 =C2=A0("1"= tags-todo "project[A]")))

Any help appreciate= d
Thanks,
--Nate
--000000000000f3280905a92a751d--