diff options
author | dalz <dalz@alsd.eu> | 2020-08-03 23:50:05 +0200 |
---|---|---|
committer | dalz <dalz@alsd.eu> | 2020-08-04 15:19:32 +0200 |
commit | 7c4b5c1d1c1ede13d93b5ad8b3eb454860483ffb (patch) | |
tree | 02026405e5950c7586e6c9aee606b8dce2e36f96 /awk | |
parent | 237da91faa143dee8772f9989943f799f9b2654a (diff) |
add org-fc-bury-siblings
Diffstat (limited to 'awk')
-rw-r--r-- | awk/index.awk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/awk/index.awk b/awk/index.awk index c389176..f037bf6 100644 --- a/awk/index.awk +++ b/awk/index.awk @@ -9,6 +9,7 @@ BEGIN { suspended_tag = ":" or_default(suspended_tag, "suspended") ":"; review_data_drawer = ":" or_default(review_data_drawer, "REVIEW_DATA") ":"; type_property = or_default(type_property, "FC_TYPE"); + cloze_type_property = or_default(cloze_type_property, "FC_CLOZE_TYPE"); created_property = or_default(created_property, "FC_CREATED"); # Small state machine to make sure cards are in the correct format @@ -118,10 +119,15 @@ $0 ~ review_data_drawer { } local_tags = parent_tags[level]; + cloze_type = "" + if (cloze_type_property in properties) + cloze_type = " :cloze-type " properties[cloze_type_property] + print " (" \ ":id " escape_string(properties["ID"]) \ " :title " escape_string(title) \ " :type " properties[type_property] \ + cloze_type \ " :created " parse_time(properties[created_property]) \ " :suspended " (suspended ? "t" : "nil") \ " :inherited-tags " escape_string(inherited_tags) \ |