>>> "IR" == Ihor Radchenko <yanta...@gmail.com> writes:

> Uwe Brauer <o...@mat.ucm.es> writes:
>> ** All groups
>> #+BEGIN: columnview :hlines 2 :match "H1" :maxlevel 2
>> :skip-empty-rows t :indent nil :format "%5TODO(Status) %5Id(Group)
>> %5Ex(Exercise) %5Sheet(Sheet) %7ST1(Status){X/}"
>> | Status | Group | Exercise | Sheet | Status |
>> |--------+-------+----------+-------+--------|
>> |        |       |          |       | [1/2]  |
>> |--------+-------+----------+-------+--------|
>> | DONE   | G1    | E1       | H1    | [ ]    |
>> |--------+-------+----------+-------+--------|
>> | DONE   | G2    | E3       | H1    | [X]    |
>> |--------+-------+----------+-------+--------|
>> | TODO   | G3    | E2       | H2    |        |
>> #+END
>> I don't understand why the line 
>> | TODO   | G3    | E2       | H2    |        | 
>> appears in the table, it does not fit condition

> Try on latest master ;)

Works! Thanks 😅 

>> I deleted the maxlevel condition
>> 
>> 
>> #+BEGIN: columnview :hlines 2 :match "H1" :skip-empty-rows t :indent
>> nil :format "%5TODO(Status) %5Id(Group) %5Ex(Exercise)
>> %5Sheet(Sheet) %7ST1(Status){X/}"
>> | Status | Group | Exercise | Sheet | Status |
>> |--------+-------+----------+-------+--------|
>> | DONE   | G1    | E1       | H1    | [ ]    |
>> |--------+-------+----------+-------+--------|
>> | DONE   | G2    | E3       | H1    | [X]    |
>> #+END
>> 
>> But now the row
>> 
>> |        |       |          |       | [1/2]  |
>> 
>> Is missing. I am confused, I thought maybe exclude-tags could help

> This is expected. The first heading does not match the condition.

Ok.
>> #+BEGIN: columnview :hlines 2 :exclude-tags (H2) :skip-empty-rows t
>> :indent nil :format "%5TODO(Status) %5Id(Group) %5Ex(Exercise)
>> %5Sheet(Sheet) %7ST1(Status){X/}"
>> | Status | Group | Exercise | Sheet | Status |
>> |--------+-------+----------+-------+--------|
>> |        |       |          |       | [1/2]  |
>> |--------+-------+----------+-------+--------|
>> | DONE   | G1    | E1       | H1    | [ ]    |
>> |--------+-------+----------+-------+--------|
>> | DONE   | G2    | E3       | H1    | [X]    |
>> |--------+-------+----------+-------+--------|
>> | TODO   | G3    | E2       | H2    |        |
>> #+END
>> 
>> But not really, help would be appreciated.

> Add quotes around H2:

> #+BEGIN: columnview :hlines 2 :exclude-tags  ("H2")    :skip-empty-rows t 
> :indent nil :format  "%5TODO(Status) %5Id(Group) %5Ex(Exercise) 
> %5Sheet(Sheet) %7ST1(Status){X/}"

Great it even allows a list as in :exclude-tags  ("H2" "H3"). That is
what I am looking for

Thanks a lot

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to