Transform label followed by count in parenthesis text list into CSV semi-manually in vim
- Label (count) convert lines of text to tabular CSV
- Name of something (123) to comma-separated values
Copy paste and do a few transformations to turn it into a spreadsheet-ready file.
First, escape the commas (something like :%s/,/\\,/
, then:
:%s/ (/,/g
:%s/)//g
Legit, part-of-the-name parenthesis still get replaced like this though.
This is actually a terrible way to do it and we could use a regular expression that identifies the number to do it better. Well, if the export is still broken next year…