This repository is a collection of custom scripts for TextBuddy, a Mac app by Tyler Hall.
To use the scripts, open TextBuddy and choose Scripts->Open Scripts Folder from the menu. Save any script from this repository to that folder (ensuring that the extension is .js
).
Scripts located in that folder, it can be run in TextBuddy using ⌘R
, or generally on the clipboard using ⌘T
.
Convert email addresses copied from a GMail to a list of participants. It also fixes the reverse ordering of names in quotes. Compare with the built-in Keep Only Email Addresses
.
Before:
Fred Bloggs <fred.bloggs@example.com>, Freda Bloggs <freda.bloggs@example.com>, "Soap, Josephine" <jo.soap@example.com>, Joe Soap <joe.soap@example.com>
After:
Fred Bloggs
Freda Bloggs
Josephine Soap
Joe Soap
Convert comma separated lines into multiple lines.
Before:
Fred Bloggs, Freda Bloggs, Josephine Soap, Joe Soap
Fred Smith, Freda Smith, Josephine Jones, Joe Jones
After:
Fred Bloggs
Freda Bloggs
Josephine Soap
Joe Soap
Fred Smith
Freda Smith
Josephine Jones
Joe Jones
Convert multiple lines into a single comma separated line.
Before:
Fred Bloggs
Freda Bloggs
Josephine Soap
Joe Soap
After:
Fred Bloggs, Freda Bloggs, Josephine Soap, Joe Soap
Convert a markdown ordered list to a bullet list.
Before:
1. line 1
2. line 2
3. line 3
After:
* line 1
* line 2
* line 3
Convert a markdown ordered list to an unordered list.
Before:
1. line 1
2. line 2
3. line 3
After:
- line 1
- line 2
- line 3
Convert lines into a list of markdown bullet points. (This is actually equivalent to Prepend Lines With...
, using *
but included for completeness.)
Before:
line 1
line 2
line 3
After:
* line 1
* line 2
* line 3
Remove bullet points from a list.
Before:
* line 1
* line 2
* line 3
After:
line 1
line 2
line 3
Remove dashes from an unordered markdown list..
Before:
- line 1
- line 2
- line 3
After:
line 1
line 2
line 3
Remove numbering from an ordered markdown list.
Before:
1. line 1
2. line 2
3. line 3
After:
line 1
line 2
line 3