Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gs-101/tempel-snippets
Rudimentary Tempel translation of YASnippet, based on tempel-collection.
https://github.com/gs-101/tempel-snippets
Last synced: 4 days ago
JSON representation
Rudimentary Tempel translation of YASnippet, based on tempel-collection.
- Host: GitHub
- URL: https://github.com/gs-101/tempel-snippets
- Owner: gs-101
- License: gpl-3.0
- Created: 2024-09-28T09:46:12.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-28T11:35:05.000Z (12 days ago)
- Last Synced: 2024-12-28T12:23:59.173Z (12 days ago)
- Language: Emacs Lisp
- Homepage:
- Size: 412 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+title: Tempel Snippets - Rudimentary YASnippet Translation
#+html:
Tempel Snippets is an effort on translating [[https://github.com/joaotavora/yasnippet][YASnippet]] snippets to the [[https://github.com/minad/tempel][Tempel]] format,
using [[https://github.com/Crandel/tempel-collection][tempel-collection]] as its core implementation (the =.el= file).
Some of the earlier snippets were translated using GPT-4O (I got the hang of Tempel's syntax after some time), and tested and tweaked by me.#+html:
* Configuration
I'll only consider uploading this package when I'm sure that any issues are fixed.
If you want to install it, consider using a source-based package manager, such as [[https://github.com/progfolio/elpaca][elpaca]],
or the newer ~package-vc-install~, included as of Emacs 30+.
Below are ~use-package~ example configurations for Tempel, aswell as different ways of installing this package.** ~package-vc-install~
#+begin_src emacs-lisp
(use-package tempel
:bind
("C-c i s" . tempel-insert)
:ensure t)(use-package tempel-snippets
:after tempel
:vc (:url "https://github.com/gs-101/tempel-snippets")
:ensure t)
#+end_src** [[https://github.com/radian-software/straight.el][Straight]]
#+begin_src emacs-lisp
(use-package tempel
:bind
("C-c i s" . tempel-insert)
:ensure t)(use-package tempel-snippets
:straight (tempel-snippets :host github :repo "gs-101/tempel-snippets")
:after tempel
:ensure t)
#+end_src** [[https://github.com/progfolio/elpaca][Elpaca]]
#+begin_src emacs-lisp
(elpaca elpaca-use-package
(elpaca-use-package-mode))(use-package tempel
:bind
("C-c i s" . tempel-insert)
:ensure t)(use-package tempel-snippets
:host github :repo "gs-101/tempel-snippets"
:after tempel
:ensure t)
#+end_src* Comparison
So, how does this package differ from the existing [[https://github.com/Crandel/tempel-collection][tempel-collection]]?
1. This package is meant to be a plain translation of [[https://github.com/AndreaCrotti/yasnippet-snippets][YASnippet Snippets]], not introducing any new snippets
2. Template names are based on the original snippet's keys, so there might be some [[https://github.com/Crandel/tempel-collection/pull/61#discussion_r1741429831][conflicts]] with autocompletion
- Manual inseartion is recommended, as is demonstrated on the configuration example
3. Since this is directly based on YASnippet Snippets, more modes and snippets are included, since it's an older project* Known Issues
** Functionality
- I haven't used YASnippet prior to working on this, so some functionality might differ from the original.
- I don't have experience with all the modes included, so there might be some issues with the snippets I couldn't catch.
- Parent snippets such as [[./snippets/c-lang-common.eld][c-lang-common]] currently have no implementation.** Indentation
There's some issues with indentation, specially in the insertion of brackets.
* Acknowledgements- [[https://github.com/Crandel][Crandel]], for creating [[https://github.com/Crandel/tempel-collection][tempel-collection]]
- [[https://github.com/AndreaCrotti][Andrea Crotti]], maintainer of [[https://github.com/AndreaCrotti/yasnippet-snippets][YASnippet Snippets]]
- [[https://github.com/AndreaCrotti/yasnippet-snippets/graphs/contributors][YASnippet Snippets Contributors]]
- [[https://github.com/abingham][Austin Bingham]], creator of [[https://github.com/abingham/elm-yasnippets][elm-yasnippets]]
- [[https://github.com/brownts][Troy Brown]], creator of [[https://github.com/brownts/gpr-yasnippets][gpr-yasnippets]]
- [[https://github.com/mrkkrp][Mark Karpov]], creator of [[https://github.com/mrkkrp/common-lisp-snippets][common-lisp-snippets]]
- [[https://github.com/uberkael][Adriano M.]], creator of [[https://github.com/uberkael/awk-yasnippets][awk-yasnippets]]
- [[https://github.com/magnars][Magnar Sveen]], creator of [[https://github.com/magnars/datomic-snippets][datomic-snippets]]