Function: denote-file-prompt-group

denote-file-prompt-group is a natively compiled function defined in denote.el.

Signature

(denote-file-prompt-group FILE TRANSFORM)

Documentation

Retun group of FILE if TRANSFORM is non-nil, per completion-metadata.

Source Code

;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
(defun denote-file-prompt-group (file transform)
  "Retun group of FILE if TRANSFORM is non-nil, per `completion-metadata'."
  (cond
   ;; FIXME 2025-12-16: Why do we not get highlights of matched
   ;; visible words?  It works if I just return FILE.
   (transform (or (denote-retrieve-filename-title file) file))
   ((file-name-directory file))
   ((file-name-extension file))
   (t "Other files")))