From: Ihor Radchenko <yantar92@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: problem with columnview and the match option
Date: Mon, 18 Oct 2021 08:49:05 +0800 [thread overview]
Message-ID: <8735ozupha.fsf@localhost> (raw)
In-Reply-To: <87a6j7e7jq.fsf@mat.ucm.es>
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 ;)
> 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.
> #+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/}"
Best,
Ihor
next prev parent reply other threads:[~2021-10-18 0:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-17 20:10 problem with columnview and the match option Uwe Brauer
2021-10-18 0:49 ` Ihor Radchenko [this message]
2021-10-18 7:00 ` Uwe Brauer
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=8735ozupha.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/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).