Function: denote-sort-get-links

denote-sort-get-links is a byte-compiled function defined in denote.el.

Signature

(denote-sort-get-links FILES-MATCHING-REGEXP SORT-BY-COMPONENT CURRENT-FILE-TYPE ID-ONLY &optional REVERSE EXCLUDE-REGEXP)

Documentation

Return sorted typographic list of links for FILES-MATCHING-REGEXP.

With FILES-MATCHING-REGEXP as a string, match files stored in the variable denote-directory(var)/denote-directory(fun).

With SORT-BY-COMPONENT as a symbol among denote-sort-components, sort FILES-MATCHING-REGEXP by the given Denote file name component. If SORT-BY-COMPONENT is nil or an unknown non-nil value, default to the identifier-based sorting.

With CURRENT-FILE-TYPE as a symbol among those specified in the variable denote-file-type(var)/denote-file-type(fun) (or the car of each element in denote-file-types), format the link accordingly. With a nil or unknown non-nil value, default to the Org notation.

With ID-ONLY as a non-nil value, produce links that consist only of the identifier, thus deviating from CURRENT-FILE-TYPE.

With optional REVERSE as a non-nil value, reverse the sort order.

With optional EXCLUDE-REGEXP exclude the files that match the given regular expression. This is done after FILES-MATCHING-REGEXP and OMIT-CURRENT have been applied.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-sort-get-links (files-matching-regexp sort-by-component current-file-type id-only &optional reverse exclude-regexp)
  "Return sorted typographic list of links for FILES-MATCHING-REGEXP.

With FILES-MATCHING-REGEXP as a string, match files stored in the
variable `denote-directory'.

With SORT-BY-COMPONENT as a symbol among `denote-sort-components',
sort FILES-MATCHING-REGEXP by the given Denote file name
component.  If SORT-BY-COMPONENT is nil or an unknown non-nil
value, default to the identifier-based sorting.

With CURRENT-FILE-TYPE as a symbol among those specified in
the variable `denote-file-type' (or the `car' of each element in
`denote-file-types'), format the link accordingly.  With a nil or
unknown non-nil value, default to the Org notation.

With ID-ONLY as a non-nil value, produce links that consist only
of the identifier, thus deviating from CURRENT-FILE-TYPE.

With optional REVERSE as a non-nil value, reverse the sort order.

With optional EXCLUDE-REGEXP exclude the files that match the given
regular expression.  This is done after FILES-MATCHING-REGEXP and
OMIT-CURRENT have been applied."
  (denote-link--prepare-links
   (denote-sort-get-directory-files files-matching-regexp sort-by-component reverse exclude-regexp)
   current-file-type
   id-only))