GNU bug report logs -
#57069
Tempel snippets
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Tue, 9 Aug 2022 10:17:02 UTC
Severity: normal
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 57069 <at> debbugs.gnu.org (full text, mbox):
Am Dienstag, dem 09.08.2022 um 12:16 +0200 schrieb Nicolas Graves:
>
> The first patch of this series introduces the equivalent of current
> yasnippet templates, with the alternative package tempel.
>
> I eventually chose to make a new folder in snippets dir, and to move
> yasnippet files, hope it's OK.
>
> It works quite well for me now, but can be improved:
>
> - I selected completing-read for completion because I'm still
> learning
> emacs and didn't tackle completion-at-point for now. Would that be
> better?
Don't. Use the (s ) field of tempel. If you have corfu with capf, you
should be able to expand them. For build-system you might want to add
"-build-system" at the end, so that the user only has to type "gnu",
"maven", etc. Less fancy than the yas one, but probably just as good.
> - Nested snippets don't seem to work that well (e.g. expanding
> git-fetch... within the edition of an origin... expansion), I had
> quite a few bugs. Seems better to finish the current snippet before
> tackling a sub-snippet (for now at least).
Probably a tempel limitation. I think it works to M-RET and then
expand at point (using corfu or a tempel binding). Just printing out
the unexpanded string should be enough for that.
Cheers
This bug report was last modified 2 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.