Skip to content

gregrperkins/simpalign

Repository files navigation

Simpalign

for SublimeText2

If you're a visual person who's heard of ⌘ d, maybe, when you want to align, you end up selecting a bunch of things, then, realizing the world's broken, give up and leave it alone. Now you too can align.

Select all the // ==>'s in the following code:

[
'end', // ==> 'mocha.end'
'fail', // ==> 'mocha.fail'
'hook end', // ==> 'mocha.hook_end'
'hook', // ==> 'mocha.hook'
'pass', // ==> 'mocha.pass'
'pending', // ==> 'mocha.pending'
'start', // ==> 'mocha.start'
'suite end', // ==> 'mocha.suite_end'
'suite', // ==> 'mocha.suite'
'test end', // ==> 'mocha.test_end'
'test', // ==> 'mocha.test'
].forEach(function (type) {

Hit ⌘ ⌥ l.

[
'end',       // ==> 'mocha.end'
'fail',      // ==> 'mocha.fail'
'hook end',  // ==> 'mocha.hook_end'
'hook',      // ==> 'mocha.hook'
'pass',      // ==> 'mocha.pass'
'pending',   // ==> 'mocha.pending'
'start',     // ==> 'mocha.start'
'suite end', // ==> 'mocha.suite_end'
'suite',     // ==> 'mocha.suite'
'test end',  // ==> 'mocha.test_end'
'test',      // ==> 'mocha.test'
].forEach(function (type) {

Installation

Paste at a shell:

(cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ && [ -d Simpalign ] || git clone [email protected]:gregrperkins/simpalign.git )

References

If you like to get fancy, you're probably looking for:

Props to khiltd and wbond for their work, as it enabled this plugin.

About

Simple alignment plugin for Sublime Text 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages