branch: externals/denote
commit 09a382fc4601604a7081a38c57f938de766a1abe
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Add FIXME about the group-function breaking the completion highlight of
match visible words
I cannot tell why this is happening. Will need to investigate further.
I thought it might have to do with 'denote-retrieve-filename-title'
changing the match data. But the problem persists even if I put a
regular string in its case which is also found in the completion
candidates I am testing it against.
---
denote.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/denote.el b/denote.el
index 78c60723cb..a2ee5208f9 100644
--- a/denote.el
+++ b/denote.el
@@ -1473,6 +1473,8 @@ there.")
(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))