All Projects → idleberg → atomizr.rb

idleberg / atomizr.rb

Licence: MIT license
A script to convert Sublime Text (and TextMate) snippets and completions into Atom snippets

Programming Languages

ruby
36898 projects - #4 most used programming language

Atomizr

The MIT License Gem GitHub release Gem

A command-line tool to convert Sublime Text snippets and completions, as well as TextMate snippets, into Atom snippets.

Also available as packages for Atom and Sublime Text (see comparison chart).

Installation

gem install atomizr

Usage

Standard conversion

Examples:

# Grab a random Sublime Text package
git clone https://github.com/idleberg/sublime-applescript AppleScript

# Usage: atomizr --input=<file> --output=<file> [options]

# Convert completions into CSON
atomizr --input=AppleScript/AppleScript.sublime-completions --output=applescript.cson

# Again, this time to JSON, and using shorthands
atomizr -i AppleScript/AppleScript.sublime-completions -o applescript.json

# Convert completions, one file per completion
atomizr -i AppleScript/AppleScript.sublime-completions -o cson --split

# Convert snippets, merge into one file.
# Put wildcard in quotes!
atomizr -i "AppleScript/snippets/*.sublime-snippet" -o snippets.cson --merge

For all available options, see --help for details

TextMate bundles

Since apm conversion of TextMate bundles requires a specific folder structure, you can use Atomizr to bundle and convert these files.

Example:

# Grab a random TextMate bundle
git clone https://github.com/jashkenas/coffee-script-tmbundle CoffeeScript.tmBundle

# Organize files, convert and delete bundle
atomizr -i CoffeeScript.tmBundle -o atom-language-coffeescript -X

License

This work is licensed under the The MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].