Home Download Buy Blog Forum Support

The most flexible alignment tool: AlignTab

Re: The most flexible alignment tool: Align Tabular

Postby rob49152 on Sat Jun 15, 2013 10:07 pm

I love this plug in! But one small hiccup with any == found. They become = = when aligning to first =
so this:
Code: Select all
$fieldAutoPopulate == ("true") ? $autoPop = "checked" : $autoPop = "";


becomes
Code: Select all
$fieldAutoPopulate = = ("true") ? $autoPop = "checked" : $autoPop = "";


and it doesn't work anymore.
rob49152
 
Posts: 14
Joined: Sat Jun 15, 2013 10:02 pm

Re: The most flexible alignment tool: Align Tabular

Postby randy3k on Sun Jun 16, 2013 1:32 am

try
Code: Select all
(?<!=)=(?!=)/f


however, if you use this, it will align the equal sign in
Code: Select all
$autoPop = "checked"


Auto line detection will become not reliable in this situation.
In this case, you may want to highlight the piece of code before applying the alignment.
randy3k
 
Posts: 46
Joined: Sun Nov 18, 2012 5:16 am

Re: The most flexible alignment tool: Align Tabular

Postby quodlibet on Wed Jun 19, 2013 11:36 am

FWIW -- I outlined a useful (?) use case for tabular data in Markdown here: viewtopic.php?f=2&t=12606&start=10#p49982
quodlibet
 
Posts: 525
Joined: Sat Jun 18, 2011 5:53 pm

Re: The most flexible alignment tool: Align Tabular

Postby svenax on Wed Jun 19, 2013 9:17 pm

bizoo wrote:
Code: Select all
\(|\)/l1c0l0c0

Not sure it works.
This plugin give me headaches every time I use it ;)


That's why you can save the regexp as a predefined pattern, so your head only will ache once. :)
svenax
 
Posts: 151
Joined: Tue Dec 20, 2011 12:47 pm

Re: The most flexible alignment tool: Align Tabular

Postby randy3k on Thu Oct 17, 2013 11:28 am

I am now opening a wiki page for examples.
So, it would be nice if you can provide your examples to the wiki~

https://github.com/randy3k/AlignTab/wiki/Examples
randy3k
 
Posts: 46
Joined: Sun Nov 18, 2012 5:16 am

Re: The most flexible alignment tool: Align Tabular

Postby thematrix on Thu Feb 06, 2014 4:36 am

Awesome plugin, thank you! But how do you turn off Table Mode? :/
thematrix
 
Posts: 3
Joined: Wed Jul 31, 2013 4:02 am

Re: The most flexible alignment tool: Align Tabular

Postby randy3k on Thu Feb 06, 2014 8:16 am

while you are in table mode, you can press <ESC> to escape table mode
randy3k
 
Posts: 46
Joined: Sun Nov 18, 2012 5:16 am

Re: The most flexible alignment tool: Align Tabular

Postby tito on Tue Feb 11, 2014 2:59 am

Would you mind removing the context menuitems and place these in commands instead? These take the place of Cut, Copy and Paste
Currently maintain the ontology of the menus, is complicated, because we lack some sort of organization.. and mutations(features).. but everyone can help.. :)
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: The most flexible alignment tool: Align Tabular

Postby Binocular222 on Sun Feb 16, 2014 3:49 am

randy3k wrote:while you are in table mode, you can press <ESC> to escape table mode
<Esc> not works. Text is still aligned and statusbar still shows "[Table Mode]"

P.S: Using Regex is very slow when aligning large table (painful when in Table Mode). This makes SublimeTableEditor superior in speed.
Maybe an option to disable Regex possible?
Binocular222
 
Posts: 55
Joined: Sat May 18, 2013 4:10 pm

Re: The most flexible alignment tool: Align Tabular

Postby randy3k on Sat Feb 22, 2014 10:01 am

<esc> should exit the table mode. could you tell me what version of st and platform you are using?

SublimeTableEditor is definitely superior in a lot of aspects in table editing as aligntab aims for general purpose.
However, i am working in a way to improve the speed.
randy3k
 
Posts: 46
Joined: Sun Nov 18, 2012 5:16 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Manachi, Yahoo [Bot] and 5 guests