dhruvasagar/vim-table-mode

Option to auto-add header fill row when doing <leader>tt of selection of existing .csv content

Offen

#190 geöffnet am 20.10.2020

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Vim Script (100 Forks)batch import
hacktoberfest

Repository-Metriken

Stars
 (2.245 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Right now if I visually select the following .csv content

header1,header2,header3
value 1,value2,value3

and then do <leader>tt it results in

| header1 | header2 | header3 |
| value 1 | value2  | value3  |

so I have to manually do || after inserting a line after the first line. Instead, I would like a config option to be able to convert the existing content to the following for markdown:

| header1 | header2 | header3 |
|---------|---------|---------|
| value 1 | value2  | value3  |

Is there currently an option to do that? If not, what would be a good name for that option if I wanted to submit a PR?

Contributor Guide