diff --git a/features/data/configs/datecount.yaml b/features/data/configs/datecount.yaml new file mode 100644 index 00000000..312769d3 --- /dev/null +++ b/features/data/configs/datecount.yaml @@ -0,0 +1,12 @@ +default_hour: 9 +default_minute: 0 +editor: '' +encrypt: false +highlight: true +journals: + default: features/journals/datecount.journal +linewrap: 80 +tagsymbols: "@" +template: false +timeformat: "%Y/%m/%d %H:%M" +indent_character: "|" diff --git a/features/data/journals/datecount.journal b/features/data/journals/datecount.journal new file mode 100644 index 00000000..d3e3edbc --- /dev/null +++ b/features/data/journals/datecount.journal @@ -0,0 +1,5 @@ +[2020-05-14 10:22] First entry. + +[2021-10-29 10:30] Second entry. + +[2021-10-29 11:13] Third entry. \ No newline at end of file diff --git a/features/format.feature b/features/format.feature index f5156301..d6874eff 100644 --- a/features/format.feature +++ b/features/format.feature @@ -554,3 +554,13 @@ Feature: Custom formats | basic_encrypted | | basic_folder | | basic_dayone | + + Scenario: Export date counts + Given we use the config "datecount.yaml" + When we run "jrnl --export datecount" + Then we should get no error + And the output should be + """ + 2020-05-14, 1 + 2021-10-29, 2 + """