1
0
Fork 0

Remove date filter

This commit is contained in:
Bram Schoenmakers 2024-08-03 21:50:00 +02:00
parent 3e187d378c
commit fb184e58f3
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -55,8 +55,7 @@ The function takes an entry argument for extracting the desired value."
:group 'elfeed-export) :group 'elfeed-export)
(defcustom elfeed-export-predicates (defcustom elfeed-export-predicates
(list #'elfeed-export--include-entry-by-date-p (list #'elfeed-export--include-entry-by-tag-p)
#'elfeed-export--include-entry-by-tag-p)
"Entries that match all of these predicates are exported. "Entries that match all of these predicates are exported.
Each predicate accepts an entry and a feed object and should Each predicate accepts an entry and a feed object and should
@ -82,11 +81,6 @@ return t when the entry should be exported."
(or (not elfeed-export-exclude-tags) (or (not elfeed-export-exclude-tags)
(not (seq-intersection elfeed-export-exclude-tags tags)))))) (not (seq-intersection elfeed-export-exclude-tags tags))))))
(defun elfeed-export--include-entry-by-date-p (entry _)
(let ((date (elfeed-entry-date entry)))
;; TODO
t))
(defun elfeed-export--entry-date (entry) (defun elfeed-export--entry-date (entry)
"Return an ISO formatted date string for the given ENTRY." "Return an ISO formatted date string for the given ENTRY."
(format-time-string "%F %T" (elfeed-entry-date entry))) (format-time-string "%F %T" (elfeed-entry-date entry)))