randy3k / AlignTab

An alignment plugin for Sublime Text using regular expression
MIT License
631 stars 25 forks source link

Aligning adds space before character - can it be disabled? #61

Closed coladarci closed 8 years ago

coladarci commented 8 years ago
{
  a: 'b',
  ccc: 'd'
}

becomes

{
  a   : 'b',
  ccc : 'd'
}

when we'd ideally like the semi's to stay right after the keys:

{
  a  : 'b',
  ccc: 'd'
}

Is this configurable, by any chance? Or Eslint settings would prefer we don't have that extra space..

randy3k commented 8 years ago

You can use the AlignTab command with input :/l0l1.

coladarci commented 8 years ago

You, sir, are a class act. (shout out to Maine, too - I'm from Bangor..)

randy3k commented 8 years ago

And I used to be in California :).

coladarci commented 8 years ago

One more question - can that :/l0l1. be adjusted to only match the first instance? I was previously using :/f

randy3k commented 8 years ago

You could use :/l0l1f