Project

atomizr

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A command-line tool to convert Sublime Text snippets and completions, as well as TextMate snippets, into Atom snippets
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 2.0.2
~> 1.6.7.2
 Project Readme

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.