vkocubinsky / SublimeTableEditor

This package is no more supported. I moved to vim.
Other
494 stars 67 forks source link

Table Editor not working if line is starting with * #43

Open MarcoNovaro opened 10 years ago

MarcoNovaro commented 10 years ago

I noticed that TableEditor is not working if line is starting with _; as this is the normal behaviour in C comments, I'd like to use TableEditor in that case as well For instance (on the _same* view):

* | a | b | c |
* |-<Tab>

TableEditor is not triggered. Instead, on:

| a | b | c |
|-<Tab>

TableEditor is correctly triggered and working

vkocubinsky commented 10 years ago

Thanks for feedback.

Your are right Table Editor doesn't work inside C comments, it working only when line starts with '|'. Only spaces before first line in table uses for format a table.

I like share experience with you, usually I enable Table Editor for programming language syntax only temporary with palette "Table Editor: Enable for current view" then after edit a table, I disable table editor for current view with palette "Table Editor: disable for current view". The reason is in Java or C characters '|' and '||' used for other purposes.

Issue have sense for me, let's keep this issue open.

Thanks!

MarcoNovaro commented 10 years ago

Hello. Thanks for the relply. Actually, I do the same: I enable Table Editor only when I need it, and then I disable it again. Nonetheless, I think it could be useful to make it working even if there are other characters on the line. For instance, I'd like to use it to edit tables inside C comments, as DoxyGen is able to parse tables, and to render them in the documentation. So, it would be nice to have it working, and keep characters on the left of the table unchanged.

Thanks again.