Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

idleberg/atomizr.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published

Languages