typeformation icon indicating copy to clipboard operation
typeformation copied to clipboard

Support editor Sublime Text 3

Open andreaswittig opened this issue 7 years ago • 2 comments

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.

andreaswittig avatar May 11 '18 15:05 andreaswittig

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:

  • Example github repo for vue js snippets: https://github.com/BrainBuzzer/vuejs-sublime-complete
  • Official docs: http://docs.sublimetext.info/en/latest/extensibility/snippets.html
  • Show list of snippets: https://stackoverflow.com/questions/16767412/how-can-i-bind-a-key-to-list-snippets-in-sublime-text-3

jeshan avatar May 12 '18 07:05 jeshan

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?

jeshan avatar May 13 '18 13:05 jeshan