wbond / sublime_alignment

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

Alignment of => in PHP arrays not working #33

Open lingo opened 11 years ago

lingo commented 11 years ago

Hi there, I tried to create PHP.sublime-settings in the user directory, and fiddled around with alignment_chars and alignment_prefix_chars, but I keep finding that the Alignment plugin will separate the = and > when aligning php arrays of key => value.

Is this something I'm doing wrong with the settings, or is it something hard-coded?

Geczy commented 11 years ago

Works for me, here's my config:

    "alignment_chars": ["=", ",", ":"],

    "alignment_space_chars": ["="],

    "alignment_prefix_chars": [
        "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
    ]
niquedegraaff commented 11 years ago

I can confirm. Alignment is not working at all in PHP for me. (Windows 7 64 bit)

eblanshey commented 11 years ago

Try the Abacus plugin for now, it seems to work for me (ST3). You'll have to add "=>" to the settings, though.

Boduje commented 10 years ago

Not working for me either. It's a shame because Alignment works great on everything else I throw at it. I'm trying Valign by dizzywhip for now. It seems to be working well.

vanrijn commented 10 years ago

Just wanted to mention... I've switched to AlignTab, which I find works REALLY well for everything I throw at it. Not trying to troll or take away from @wbond's great work, but I find AlignTab to be much better for my workflow and use cases (Objective-C's goofy colon centered alignment). HTH!

Relequestual commented 8 years ago

Thanks for this @vanrijn . That plugin provides examples and better documentation, so it's clearer that it does what I want.

nd3w commented 8 years ago

I go to this page because the shortcut command Ctrl + Alt + A sometimes it works, sometimes it doesn't, just like this last 2 days. I go to @vanrijn suggestion to using AltTab, and it's working perfectly, but I still miss my shortcuts. Right-clicking and choose a 'divider' (?) is too much to my liking.