Function: denote-infer-keywords-from-files
denote-infer-keywords-from-files is a byte-compiled function defined
in denote.el.
Signature
(denote-infer-keywords-from-files &optional FILES-MATCHING-REGEXP)
Documentation
Return list of keywords in denote-directory-files.
With optional FILES-MATCHING-REGEXP, only extract keywords from the matching files. Otherwise, do it for all files.
Keep any duplicates. Users who do not want duplicates should refer to
the functions denote-keywords.
Aliases
denote--inferred-keywords (obsolete since 4.0.0)
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-infer-keywords-from-files (&optional files-matching-regexp)
"Return list of keywords in `denote-directory-files'.
With optional FILES-MATCHING-REGEXP, only extract keywords from the
matching files. Otherwise, do it for all files.
Keep any duplicates. Users who do not want duplicates should refer to
the functions `denote-keywords'."
(when-let* ((files (denote-directory-files files-matching-regexp))
(keywords (mapcan #'denote-extract-keywords-from-path files)))
(if-let* ((regexp denote-keywords-to-not-infer-regexp))
(seq-remove
(lambda (k)
(string-match-p regexp k))
keywords)
keywords)))