dhruvasagar / vim-table-mode

VIM Table Mode for instant table creation.
2.1k stars 97 forks source link

Ignore pipe symbol inside of brackets #171

Open imbolc opened 4 years ago

imbolc commented 4 years ago

I'm aware of workaround described in https://github.com/dhruvasagar/vim-table-mode/issues/64, but still can't we safely avoid formatting if the pipe surrounded by any kind of brackets and quotes: ", ', `, <, [, (?

Let's say we have a shell command which includes a pipe in a table. The workaround, while providing correct export format (markdown for example), breaks the ability of copying the command in text mode.

dhruvasagar commented 4 years ago

It would require considerable effort. Right now table-mode essentially uses regex based parser to identify tables and changes such as this require considerable changes to the regexes. While it would certainly be a good to have, I am not sure if it's pressing enough.

dhruvasagar commented 4 years ago

I will keep this open, however, at the moment there are other more important issues to be dealt with, I will try to look more into this later when I find time. Until then, if you're willing and have ht time, take a stab at contributing yourself