atom-alignment icon indicating copy to clipboard operation
atom-alignment copied to clipboard

Alignment on commas

Open dlewand691 opened this issue 10 years ago • 8 comments

I'd like to align elements of my code for easier reading on the comma, but cannot get it to work. For example, I'd like to convert:

+navOption('biography', 'Biography and Timeline')
+navOption('books-articles', 'Books and Articles about Paul Rand')
+navOption('events-exhibits', 'Events and Exhibits')
+navOption('videos-interviews', 'Videos and Interview')
+navOption('portraits', 'Portraits')
+navOption('rand-house', 'The Rand House')
+navOption('his-inspirations', 'Inspirations')
+navOption('personal-items', 'Personal Items')
+navOption('death', 'Death')

to:

+navOption( 'biography'         , 'Biography and Timeline'             )
+navOption( 'books-articles'    , 'Books and Articles about Paul Rand' )
+navOption( 'events-exhibits'   , 'Events and Exhibits'                )
+navOption( 'videos-interviews' , 'Videos and Interview'               )
+navOption( 'portraits'         , 'Portraits'                          )
+navOption( 'rand-house'        , 'The Rand House'                     )
+navOption( 'his-inspirations'  , 'Inspirations'                       )
+navOption( 'personal-items'    , 'Personal Items'                     )
+navOption( 'death'             , 'Death'                              )

What combination of characters should I use? Have tried several combinations but nothing seems to work. Crashes Atom when trying to use just a comma.

dlewand691 avatar Sep 24 '15 17:09 dlewand691

Why didn't anybody ever reply to him ? I'm facing the same issue nearly 1 year later.

Loschcode avatar Aug 09 '16 13:08 Loschcode

Replying to commenters and issues is so 2015. You know, like from when this issue was opened.

tofof avatar Nov 02 '16 01:11 tofof

Just following up on this, wondering if there's a solution? Regex perhaps?

dlewand691 avatar Dec 05 '16 17:12 dlewand691

And I'd like a similar thing, except I want to align on the space after the comma (leaving the comma where it is).

contentfree avatar Jun 01 '17 21:06 contentfree

This will receive attention shortly after the year of Gnu/Hurd on the desktop.

tofof avatar Jun 01 '17 23:06 tofof

For anyone else that lands here, it's actually pretty easy to add support to https://github.com/adrianlee44/atom-aligner for this.

d3v1an7 avatar Aug 03 '17 14:08 d3v1an7

Hello,

Sorry about if this repository isn't update anymore but I can't find time to work on it. If someone want to maintain it or contribute to, feels free.

Freyskeyd avatar Aug 03 '17 14:08 Freyskeyd