vkocubinsky / SublimeTableEditor

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

Add support for reStructuredText substitution syntax #12

Open ghost opened 12 years ago

ghost commented 12 years ago

reStructuredText has support for user-defined substition (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#substitution-definitions). Here is example of usage:

.. |varname| replace:: content

+---------------------+-----------+
|          A          |     B     |
+=====================+===========+
| varname = |varname| | value 1.2 |
+---------------------+-----------+
| value 2.1           | value 2.2 |
+---------------------+-----------+

Buf reformatting (Ctrl+Shift+A) completely breaks table layout:

+-----------+-----------+---+-----------+
|     A     |     B     |   |           |
+===========+===========+===+===========+
| varname = | varname   |   | value 1.2 |
+-----------+-----------+---+-----------+
| value 2.1 | value 2.2 |   |           |
+-----------+-----------+---+-----------+

It would be nice to have support for such tables.

vkocubinsky commented 11 years ago

Thanks for the feedback!

Now Table Editor use character '|' for detect column. One way for fix this issue is detect column by '+' character, but the changes will break simplicity of work with Table Editor and I am not ready do this changes now.

Thanks!

Rapptz commented 10 years ago

Any word on this issue yet? It still happens on the latest version of the plugin.

vkocubinsky commented 10 years ago

No changes for this issue.