Org mode: Duplicate snippets
dschrempf opened this issue · 1 comments
What would you like to know?
Hi!
I was just working on cleaning the Org mode snippets, and realized that most of them are duplicates.
For example, the snippet begin_src
calls the src
snippet. In my opinion, we should remove all duplicates and stick to one naming scheme. Either, we use the begin_X
snippets, or we use the X
snippets. I prefer X
without begin
. I would be willing to implement these changes. I strongly believe that simplifying the snippets is better than maintaining duplicate snippets.
This is intentional. Those duplicates are intended as aliases, so a snippet can have multiple triggers; something yasnippet does not support natively. I'm playing with rewriting our snippets into org files with a cleaner syntax that would support this (which would significantly reduce repetition, but require they be transpiled into yasnippet snippets at compile time), but until then this is unavoidable.
As the underlying issue (duplicate snippets) was intentional I'll close this, but feel free to follow up here. I think waiting for that rewrite will be the solution to this.