Kungsgeten / yankpad

Paste snippets from an org-mode file
MIT License
215 stars 18 forks source link

Provide a function for completion-at-point-functions #80

Open arkhan opened 3 years ago

arkhan commented 3 years ago

It would be great if yankpad provided a function that can readily be added to completion-at-point-functions, which is part of core Emacs (see documentation).

To be able to integrate with different solutions to company-mode like corfu

Thanks

Kungsgeten commented 3 years ago

Hi! That's a good suggestion. I'm not using completion for Yankpad myself, how would you suggest that it works? Is it the snippet names that it completes against? If so I think the expand keyword needs to be included in the names.

arkhan commented 1 year ago

Hi! That's a good suggestion. I'm not using completion for Yankpad myself, how would you suggest that it works? Is it the snippet names that it completes against? If so I think the expand keyword needs to be included in the names.

this repo can serve as inspiration https://github.com/elken/cape-yasnippet/tree/master