Home Download Buy Blog Forum Support

The most flexible alignment tool: AlignTab

The most flexible alignment tool: AlignTab

Postby randy3k on Mon Dec 10, 2012 6:19 am

I would say it is the most flexible alignment tool for Sublime ever exists.

https://github.com/randy3k/AlignTab

Image

Table mode
Image
Last edited by randy3k on Tue Jun 10, 2014 9:50 am, edited 4 times in total.
randy3k
 
Posts: 37
Joined: Sun Nov 18, 2012 5:16 am

Re: The most flexible alignment tool: Align Tabular

Postby senzo on Wed Dec 12, 2012 11:59 am

This looks interesting (and complicated ;). I'll definitively give it a try.
senzo
 
Posts: 106
Joined: Tue May 24, 2011 9:17 am

Re: The most flexible alignment tool: Align Tabular

Postby randy3k on Thu Dec 13, 2012 4:19 am

it's complicated, but you have controls of everything.

1) Use regular expression rather than pre-defined delimiters.
2) Options to control left/right/center alignment.
3) Maximum number of splits.
randy3k
 
Posts: 37
Joined: Sun Nov 18, 2012 5:16 am

Re: The most flexible alignment tool: Align Tabular

Postby novice on Tue Mar 19, 2013 11:00 am

hi,

is it possible to specify multiple characters to align on?
For example open and closing braces.

from
Code: Select all
foo(bar)
foo1(bar1)


make
Code: Select all
foo  (bar)
foo1 (bar1)


Regards
novice
 
Posts: 5
Joined: Sat Mar 09, 2013 4:44 am

Re: The most flexible alignment tool: Align Tabular

Postby bizoo on Tue Mar 19, 2013 11:25 am

No idea what you mean... You must specify a regular expression, not a character.
Isn't \(.*?\) working for this example ?
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: The most flexible alignment tool: Align Tabular

Postby novice on Tue Mar 19, 2013 12:25 pm

hi,

thanks, yes your regex is working for the example above. However, I want to align also on all closing braces (sorry, i forgot that in the example above).

Thus, from
Code: Select all
foo(bar)
foo1(bar1)

make
Code: Select all
foo  (bar )
foo1 (bar1)
novice
 
Posts: 5
Joined: Sat Mar 09, 2013 4:44 am

Re: The most flexible alignment tool: Align Tabular

Postby bizoo on Tue Mar 19, 2013 12:44 pm

Code: Select all
\(|\)/l1c0l0c0

Not sure it works.
This plugin give me headaches every time I use it ;)
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: The most flexible alignment tool: Align Tabular

Postby novice on Tue Mar 19, 2013 12:51 pm

Its working! Thanks a lot!
novice
 
Posts: 5
Joined: Sat Mar 09, 2013 4:44 am

Re: The most flexible alignment tool: Align Tabular

Postby randy3k on Sat Jun 15, 2013 7:46 am

I have updated the plugin to make it more friendly to new users.
Check it out~
https://github.com/randy3k/AlignTab
randy3k
 
Posts: 37
Joined: Sun Nov 18, 2012 5:16 am

Re: The most flexible alignment tool: Align Tabular

Postby Daedal on Sat Jun 15, 2013 1:44 pm

Thank you very much for such a great plugin!
Daedal
 
Posts: 6
Joined: Thu Feb 21, 2013 12:20 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 15 guests