emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Daniel J. Sinder" <djsinder@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Dynamic block match fails on checkbox columns
Date: Sun, 13 Feb 2022 23:19:50 -0800	[thread overview]
Message-ID: <CAHND-wwBsoAQs2a5XTGKyX-=fFL5AwCPup=uA+R=FRH=1rUeVg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]

I'm trying to use a dynamic block with :match to filter columnview for a
checkbox column.  However, the match is failing.   Based on some variations
that do work (described below the example), it seems the closing square
bracket may be the problem.

Here's a minimal example:
* Things
  :PROPERTIES:
  :COLUMNS:  %20ITEM %CHKBOX{X/}
  :ID:       Things
  :CHKBOX_ALL: "[ ]" "[X]"
  :END:
*** One Thing
    :PROPERTIES:
    :CHKBOX:   [X]
    :END:
*** Another Thing
    :PROPERTIES:
    :CHKBOX:   [ ]
    :END:

* Dynamic Block
  #+BEGIN: columnview :id Things :match "CHKBOX=\"[X]\""
  | ITEM | CHKBOX |
  |------+--------|
  #+END:

If I use curly braces for CHKBOX_ALL (i.e., "{ }" "{X}") instead of square
braces, it works fine (of course, I have to also use :match
"CHKBOX=\"{X}\"").  But then the SUMMARY-TYPE in the COLUMNS definition
doesn't work.  The match (but not the summary) also works if I remove just
the *closing *square bracket from the CHKBOX properties and the :match
string.  FWIW, the match also fails for the case of searching for unchecked
items (i.e., :match "CHKBOX=\"[ ]\"").

Emacs version:  27.2
Org version: 9.4.4

Dan

[-- Attachment #2: Type: text/html, Size: 1533 bytes --]

             reply	other threads:[~2022-02-14  7:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14  7:19 Daniel J. Sinder [this message]
2022-10-25 10:40 ` Dynamic block match fails on checkbox columns Ihor Radchenko

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='CAHND-wwBsoAQs2a5XTGKyX-=fFL5AwCPup=uA+R=FRH=1rUeVg@mail.gmail.com' \
    --to=djsinder@gmail.com \
    --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).