Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 

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.

About

A script to convert Sublime Text (and TextMate) snippets and completions into Atom snippets

Resources

License

Packages

No packages published

Languages