emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: problem with columnview and the match option
Date: Mon, 18 Oct 2021 09:00:37 +0200	[thread overview]
Message-ID: <87sfwyg6lm.fsf@mat.ucm.es> (raw)
In-Reply-To: 8735ozupha.fsf@localhost

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

>>> "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

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

      reply	other threads:[~2021-10-18  7:02 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
2021-10-18  7:00   ` Uwe Brauer [this message]

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=87sfwyg6lm.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).