fc / Review Contexts

Table of Contents

By default, two contexts are defined:

all cards in org-fc-directories
all cards in the current buffer

New contexts can be defined by adding them to the alist org-fc-custom-contexts .

Contexts have the form (:paths paths :filter filter) .

Filters can be combinations of the following expressions:


All double cards with tag "math":

(add-to-list 'org-fc-custom-contexts
  '(double-math-cards . (:filter (and (type double) (tag "math")))))

All cards in that don't have one of the tags "foo" and "bar":

(add-to-list 'org-fc-custom-contexts
  '(no-foo-bar-cards . (:filter (not (or (tag "foo") (tag "bar"))))))

All cards in ~/combinatorics/ or ~/number_theory.org :

(add-to-list 'org-fc-custom-contexts
  '(math-cards . (:paths ("~/combinatorics/" "~/number_theory.org"))))

All cards in ~/combinatorics/ with tag "theorem":

(add-to-list 'org-fc-custom-contexts
  '(combinatorics-theorems .
    (:paths "~/combinatorics/" :filter (tag "theorem"))))

All double cards in the current buffer:

(add-to-list 'org-fc-custom-contexts
  '(current-double .
    (:paths buffer :filter (type double))))


Because parsing of tags is done in AWK, tag filters don't work for tags defined in the #+FILETAGS: of a #+SETUP_FILE: .


If you have an idea how this page could be improved or a comment send me a mail.