Feature Request: CollapseTable
Open
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 167
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
This is awesome and thanks for making it! A reverse option would be the cherry on the cake. I often have the output from a SQL query that I'd like to quickly and easily convert to csv.
For example, with:
+------------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------------+------------------+------+-----+---------+----------------+
| Time_zone_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| Use_leap_seconds | enum('Y','N') | NO | | N | |
+------------------+------------------+------+-----+---------+----------------+
use :'<,'>CollapseTable to convert to:
Field,Type,Null,Key,Default,Extra,
Time_zone_id,int(10) unsigned,NO,PRI,NULL,auto_increment,
Use_leap_seconds,enum('Y','N'),NO,,N,,
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the CollapseTable command and reading its existing table-to-text conversion behavior. Add the reverse operation described in the issue, using the shown SQL table output as the input and matching the displayed CSV output when done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100