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.
Looks through the text for [xxx 00] tags, and then numbers them from 01. It is case sensitive, so [abc 00] is not the same as [ABC 00].
Before:
[ABC 00] some text here
[abc 00] some more text here
[def 00] some different text here
some more text here [ABC 00]
some [def 00] different text here
[ABC 00] some more text here
[abc 00] some more text here
After:
[ABC 01] some text here
[abc 01] some more text here
[def 01] some different text here
some more text here [ABC 02]
some [def 02] different text here
[ABC 03] some more text here
[abc 02] some more text here
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 <[email protected]>, Freda Bloggs <[email protected]>, "Soap, Josephine" <[email protected]>, Joe Soap <[email protected]>
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