This repository has been archived by the owner. It is now read-only.
A script to convert Sublime Text (and TextMate) snippets and completions into Atom snippets
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib simplify add_trailing_tabstop() Sep 29, 2016
.gitignore
Gemfile
LICENSE.md external license Apr 10, 2016
README.md
atomizr.gemspec

README.md

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.

Donate

You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd