dhruvasagar/vim-table-mode

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

開放

#190 建立於 2020年10月20日

 (1 則留言) (0 個反應) (0 位負責人)Vim Script (100 個分叉)batch import
hacktoberfest

倉庫指標

星標
 (2,245 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

貢獻者指南