jeshan / typeformation

Type Cloudformation templates with pleasure!
https://plugins.jetbrains.com/plugin/10653-typeformation
BSD 2-Clause "Simplified" License
16 stars 2 forks source link

Support editor Sublime Text 3 #1

Open andreaswittig opened 6 years ago

andreaswittig commented 6 years ago

Hey Jeshan, really love this but would like to use it in my Sublime Text 3. Docs for how to write plugins for it: https://packagecontrol.io/docs. Here is an example of an open source plugin for it that you can check out:https://github.com/uipoet/sublime-jshint.

jeshan commented 6 years ago

Thanks for raising the first feature request, Andreas. I'll see if I can work on this soon. The plan is to reuse as much from the intellij live templates so I'll need to write a converter for it.

I rely on certain in-built Intellij functions for some of the templates and at first sight there isn't such a thing in Sublime. But it does have substitutions or the Python plugin API which may do the trick.

Keeping this for my reference later:

jeshan commented 6 years ago

Bummer, looks like we can't offer a list of options in Sublime snippets. So the following won't be possible in Sublime:

Source: https://stackoverflow.com/a/9729704/7401700

@andreaswittig What do you think of the suggestion in the stackoverflow answer?