A macro to quickly convert lines of text into single line of comma separated values.
Usage - select/highlight some text in sublime. Type this command
super+, super+,
e.g. on a Mac command+, (command + comma) two times in a row.
INPUT
me@example.com
another@example.com
number3@example.com
OneForGoodMeasure@example.com
INPUT
me@example.com, another@example.com, number3@example.com, OneForGoodMeasure@example.com
INSTALL
- Download the macro below and move it into your settings folder
mv add-commas.sublime-macro ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
- Copy the keybinding to clipboard. Then in Sublime go to
Preferences >> Key Bindings - Userand paste it in there. Might need to reboot Sublime, but you should be good to go.