mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
* Add text file that should be ignored to basic test folder journal. Makes tons of tests fail * Add additional files that should be ignored by FolderJournal * Ignore all files in folder journal except year/month/day.txt * Completely remake get_files in FolderJournal: - move get_files into FolderJournal class and add underscore prefix - create iterables to get for year/month folders and day files - make year/month/day file reading strict: only exact expected months and days out of all possible months and days * Restore accidentally-deleted self.sort() line * Use match instead of string comparison to be os-agnostic * Explicitly declare static methods * Filter with glob first for max performance * Explicitly check for valid dates in FolderJournal and add unit test * Remove unneeded jrnl import * Clean up method comment and add type hints * Add is_valid_date unit test * Elucidate comment Co-authored-by: Jonathan Wren <jonathan@nowandwren.com> |
||
---|---|---|
.. | ||
basic_dayone.dayone/entries | ||
basic_folder | ||
bug153.dayone/entries | ||
bug780.dayone/entries | ||
dayone.dayone/entries | ||
dayone_empty.dayone/entries | ||
empty_folder | ||
basic_encrypted.journal | ||
basic_onefile.journal | ||
brackets.journal | ||
deletion.journal | ||
deletion_filters.journal | ||
encrypted.journal | ||
encrypted_jrnl-1-9-5.journal | ||
little_endian_dates.journal | ||
markdown-headings-335.journal | ||
mostlyreadabledates.journal | ||
multiline-tags.journal | ||
multiline.journal | ||
simple.journal | ||
simple_jrnl-1-9-5.journal | ||
simple_jrnl-1-9-5_little_endian_dates.journal | ||
tags-216.journal | ||
tags-237.journal | ||
tags.journal | ||
unreadabledates.journal | ||
work.journal |