8000 GitHub - jgarte/tempel-snippets: Rudimentary Tempel translation of YASnippet, based on tempel-collection.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rudimentary Tempel translation of YASnippet, based on tempel-collection.

License

Notifications You must be signed in to change notification settings

jgarte/tempel-snippets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tempel Snippets - Rudimentary YASnippet Translation

Tempel Snippets is an effort on translating YASnippet snippets to the Tempel format, using 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.

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 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

(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)
(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)
(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)

Comparison

So, how does this package differ from the existing tempel-collection?

  1. This package is meant to be a plain translation of YASnippet Snippets, not introducing any new snippets
  2. Template names are based on the original snippet’s keys, so there might be some 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 c-lang-common currently have no implementation.

Indentation

There’s some issues with indentation, specially in the insertion of brackets.

Acknowledgements

About

Rudimentary Tempel translation of YASnippet, based on tempel-collection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%
0