Function: denote-get-relative-path-by-id
denote-get-relative-path-by-id is a natively compiled function defined
in denote.el.
Signature
(denote-get-relative-path-by-id ID &optional DIRECTORY)
Documentation
Return relative path of ID string in denote-directory-files.
The path is relative to DIRECTORY (default: ‘default-directory’).
Source Code
;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
(defun denote-get-relative-path-by-id (id &optional directory)
"Return relative path of ID string in `denote-directory-files'.
The path is relative to DIRECTORY (default: ‘default-directory’)."
(when-let* ((path (denote-get-path-by-id id)))
(file-relative-name path directory)))