wbond / sublime_alignment

Easy alignment of multiple selections and multi-line selections
http://wbond.net/sublime_packages/alignment
522 stars 110 forks source link

Alignment of var statements in JS #10

Closed spadgos closed 12 years ago

spadgos commented 12 years ago

The most common use case for me using the alignment plugin is a situation like this:

var foo = require('lib/foo'),
    bar = require('bar/bar'),
    quuxDoo = 86400;

When selecting the above lines and aligning, the actual result is this:

    var foo = require('lib/foo'),
    bar = require('bar/bar'),
    quuxDoo = 86400;

Whereas the desired result would be:

var foo     = require('lib/foo'),
    bar     = require('bar/bar'),
    quuxDoo = 86400;
wbond commented 12 years ago

This seems to be a duplicate of issue #5