Crandel / tempel-collection

Collection tempel templates
GNU General Public License v3.0
77 stars 27 forks source link

Feature Request: Lorem Ipsum Text #37

Closed jgarte closed 7 months ago

jgarte commented 1 year ago

Hi,

What do you think if we were to use this library to provide a tempel-like interface for lorem ipsum snippets?

https://github.com/jschaf/emacs-lorem-ipsum

Crandel commented 1 year ago

If you can do this, feel free to open a PR

ispringle commented 1 year ago

Just my two cents, this strikes me as better implemented in the lorem-ipsum project as a completion-at-point enhancement. To do it in tempel would require some guards to ensure the package is installed on the client before expanding or even evaluating the snippet. It would also be either a :post directive only or need a custom element declared.

There is currently an open issue in that repo for a feature which I believe would require the creation of a capf, so this seems like it'd be an incidental feature of that issue being completed.