[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with columnview and the match option
From: |
Uwe Brauer |
Subject: |
Re: problem with columnview and the match option |
Date: |
Mon, 18 Oct 2021 09:00:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:
> Uwe Brauer <oub@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
smime.p7s
Description: S/MIME cryptographic signature