emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Dynamic block match fails on checkbox columns
@ 2022-02-14  7:19 Daniel J. Sinder
  0 siblings, 0 replies; only message in thread
From: Daniel J. Sinder @ 2022-02-14  7:19 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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
  :ID:       Things
  :CHKBOX_ALL: "[ ]" "[X]"
*** One Thing
    :CHKBOX:   [X]
*** Another Thing
    :CHKBOX:   [ ]

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

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


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-14  7:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14  7:19 Dynamic block match fails on checkbox columns Daniel J. Sinder

Code repositories for project(s) associated with this inbox:


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).