completion-styles for custom dynamic completion capfs? #581
Replies: 4 comments 15 replies
-
|
It depends on how the Capf is implemented. Your description sounds as if the Capf would only produce candidates starting with the input prefix. See the Cape package for example Capfs which produce candidates dynamically, e.g., |
Beta Was this translation helpful? Give feedback.
-
|
Another reason could be that you have configured |
Beta Was this translation helpful? Give feedback.
-
This is true, but I don't know where this is determined or how to avoid it. Is your cape--dynamic-table what perhaps makes avoiding this possible? Its docstring concludes: "This way the dynamic candidate computation is compatible with non-prefix completion styles like I also thought I read about dynamic-completion that completion styles can't be modified for dynamic completion. my capf maker is here: https://codeberg.org/martianh/fedi-http/src/dev/fedi-post.el#L231 (you helped me out with it way back) an instance of it is here: https://codeberg.org/martianh/fj.el/src/dev/fj.el#L4060 |
Beta Was this translation helpful? Give feedback.
-
|
i tried setting a category in my capf maker, and then using
to no avail (but i'm not sure i know how to add a category... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i'm have a dynamic completion capf for user-mentions autocomplete (we fetch candidates from an REST API).
when doing normal completion with corfu, e.g. programming elisp, i can enable a completion style (substring or orderless) so that a match can be anywhere in a string.
but with my capf, i have noticed that the popup only appears if the prefix matches exactly the first letters of some candidates. is it possible to have the more tolerant substring style in this context too? the matches would be less likely to be correct, but at least we would look like we were trying to provide something, which is better than silently/invisibly failing.
Beta Was this translation helpful? Give feedback.
All reactions