Its working! Thanks a lot!
The most flexible alignment tool: AlignTab
I have updated the plugin to make it more friendly to new users.
Check it out~
github.com/randy3k/AlignTab
I love this plug in! But one small hiccup with any == found. They become = = when aligning to first =
so this:
$fieldAutoPopulate == ("true") ? $autoPop = "checked" : $autoPop = "";
becomes
$fieldAutoPopulate = = ("true") ? $autoPop = "checked" : $autoPop = "";
and it doesn’t work anymore.
try
(?<!=)=(?!=)/f
however, if you use this, it will align the equal sign in $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.
FWIW – I outlined a useful (?) use case for tabular data in Markdown here: viewtopic.php?f=2&t=12606&start=10#p49982
[quote=“bizoo”]\(|\)/l1c0l0c0
Not sure it works.
This plugin give me headaches every time I use it [/quote]
That’s why you can save the regexp as a predefined pattern, so your head only will ache once.
I am now opening a wiki page for examples.
So, it would be nice if you can provide your examples to the wiki~
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…
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?
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.
using it in CSS, is there a way to add “{” as an align mode, in the right click interface?
adding it to the settings file does not seem to affect it.
(except regexp)
[quote=“sneila”]using it in CSS, is there a way to add “{” as an align mode, in the right click interface?
adding it to the settings file does not seem to affect it.
(except regexp)[/quote]
you can create your own Context.sublime-menu
and put it under User
.
Hey all. I don’t know much about regex, but this tool looks like it would be perfect for aligning verilog port lists. Could anyone help me figure out how to configure it to turn code like this:
input [17:0] SW, // write enable, write address, input data
input [0:0] KEY, // reset
input CLOCK_50, // 50 MHz clock
output [0:0] LEDG, // write enable
output [0:6] HEX7, // write address
output [0:6] HEX6, // write address
output [0:6] HEX5, // data in
output [0:6] HEX4, // data in
output [0:6] HEX3, // read address
output [0:6] HEX2, // read address
output [0:6] HEX1, // data output
output [0:6] HEX0, // data output
output [17:0] LEDR // switches
into code like this:
input [17:0] SW , // write enable, write address, input data
input [0 :0] KEY , // reset
input CLOCK_50, // 50 MHz clock
output [0 :0] LEDG , // write enable
output [0 :6] HEX7 , // write address
output [0 :6] HEX6 , // write address
output [0 :6] HEX5 , // data in
output [0 :6] HEX4 , // data in
output [0 :6] HEX3 , // read address
output [0 :6] HEX2 , // read address
output [0 :6] HEX1 , // data output
output [0 :6] HEX0 , // data output
output [17:0] LEDR // switches
Thanks.