this post was submitted on 26 Aug 2023
4 points (100.0% liked)

Emacs

310 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hello everyone! My first post in this new forum.

I read a lot for research, and to keep track of the read books I am experimenting with a combination of bibtex and org mode column view. I have list of my books in an org-file, which then is exported to a bib-file to be able to use org-cite-insert.

Now, to filter the list of books to show I need to set the :match criteria in the column view dynamic block. This works well for all exact matches. But for instance, if I want to match all the books I have read in a certain year (I have a field in the per-book-heading like: DATE_FINISHED), I cannot filter them out. If the value is, say, 2023-08-26, how can I filter that when I am looking only for the year?

It seems to me, :match is always looking at the whole entry, I cannot use:

:match "DATE_FINISHED=\"2023\"

I would have to use:

:match "DATE_FINISHED=\"2023-08-26\"

But I want all the books of 2023, not only those of the 26th of August. How could I solve this? Thank you very much for any hint!

Titus

you are viewing a single comment's thread
view the rest of the comments
[–] yantar92 3 points 1 year ago* (last edited 1 year ago) (1 children)

Check out https://orgmode.org/manual/Matching-tags-and-properties.html. You can have a match like DATE_FINISHED>="<2023-01-01>"+DATE_FINISHED<"<2024-01-01>". Or you can use regexp match DATE_FINISHED={2023}

[–] Titus 1 points 1 year ago

Thank you so much! I feel stupid I didn't find that out. But I'm also very glad you told me -- because now I can not only filter the year, but also keywords from a list of keywords in another property, using the curly brackets. That is wonderful and helps me a lot. Thanks again for answering and for being patient with a "blind" man!