Closed failable closed 2 years ago
This is by design since the input is a valid file path. Otherwise you wouldn't be able to input directory paths.
The company
way seems better since it's has the advantage of TAB
quickly to access deep nested files to minimize the C-n
s. To insert a directory, aren't both libraries require a C-g
?
The company way seems better since it's has the advantage of TAB quickly to access deep nested files to minimize the C-ns. To insert a directory, aren't both libraries require a C-g?
I disagree. Corfu uses the underlying Emacs file completion table as is. There you don't complete full paths but the files step by step.
Anyways if you prefer the Company way you can either use Company or use the Company backend with Corfu/Cape.
(fset #'cape-path (cape-company-to-capf #'company-files))
(add-hook 'completion-at-point-functions #'cape-path)
That works! Thanks!
Compared to other
cape-*
functions,cape-file
does not select the first candidate when the frame shows up. Is it by design? Thanks.Config: