a toolkit for converting between SublimeText snippets and Jetbrains live templates
Python Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
shortbus
tests
.editorconfig
.gitignore
.travis.yml
AUTHORS.rst
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
requirements.txt
requirements_dev.txt
setup.cfg
setup.py
tox.ini

README.rst

Documentation Status Updates

shortbus

Tools to convert Sublime Text snippets into Jetbrains live templates and vice versa

  • Free software: MIT license
  • Documentation: something is wrong with the read-the-docs build, so for those in a *nix environment, to view the documentation do this:
$ git clone https://github.com/brmc/shortbus
$ cd shortbus
$ make docs

a browser should open with the docs

Requirements:

  • python3.6+
  • lxml
  • pyyaml

Quick Start

Install library:

$ pip install shortbus

Do stuff:

transpilers.import_from_yml('./my.yml')
    .import_from_sublimetext('~/path/to/sublimetext/snippetdir/)
    .import_from_jetbrains('~/.PyCharm2016.3/config/liveTemplates/Djaneiro.xml')
    .export_to_jetbrains('shortbus.xml')
    .export_to_yml('shortbus.yml')