chore(completion/copilot): improve filename matching of predicate function

This commit is contained in:
Jim Myhrberg
2024-11-21 01:30:06 +00:00
parent 5009bf681e
commit afe79a9390

View File

@@ -42,7 +42,7 @@
(or (string-prefix-p ".env" base)
(string-match-p "\/\.ansible\/tmp\/ansible-local-.+$" dir)
(string-suffix-p ".kube/config" full)))
(let ((name (buffer-name)))
(let ((name (string-trim (buffer-name))))
(or (string-prefix-p "*temp*" name)
(string-match-p "*scratch*" name)))))