TextBuddy Version 1.0.11 Release Notes

Today’s TextBuddy update includes a number of new features.

  • New: Display invisible characters such as newlines, tabs, and spaces.
  • New: Press ⌘L to jump to a specific line number.
  • Fixed: Not all characters were correctly encoded with the “URL Encode” command.

Improved Code Comment Wrapping

First up, suggested by Brett, the “Wrap and Respect Code Comments” command will now honor whatever number of comment characters each line of text begins with. Previously, this…

// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

///// Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

would wrap to

// Lorem ipsum dolor sit amet, consectetur
 // adipiscing elit, sed do eiusmod tempor incididunt
 // ut labore et dolore magna aliqua. Ut enim ad minim
 // veniam, quis nostrud exercitation ullamco laboris
 // nisi ut aliquip ex ea commodo consequat.

 // Duis aute irure dolor in reprehenderit in
 // voluptate velit esse cillum dolore eu fugiat nulla
 // pariatur. Excepteur sint occaecat cupidatat non
 // proident, sunt in culpa qui officia deserunt mollit
 // anim id est laborum.

But now you’ll get

// Lorem ipsum dolor sit amet, consectetur
 // adipiscing elit, sed do eiusmod tempor incididunt
 // ut labore et dolore magna aliqua. Ut enim ad minim
 // veniam, quis nostrud exercitation ullamco laboris
 // nisi ut aliquip ex ea commodo consequat.

 ///// Duis aute irure dolor in reprehenderit in
 ///// voluptate velit esse cillum dolore eu fugiat
 ///// nulla pariatur. Excepteur sint occaecat
 ///// cupidatat non proident, sunt in culpa qui
 ///// officia deserunt mollit anim id est laborum.

Paste Before and After Each Line

TextBuddy already has a “Prepend Lines With…” and “Append Lines With…” command. But this improvement idea came from Chris Messina. Now you can directly paste before and after each line in your document.

Expanding and Abbreviating File Paths

Another new TextBuddy trick is working with file paths in your document that contain the ~ (tilde) character, which is shorthand for your home folder.

There are two new commands “Expand Tilde in File Paths” and “Abbreviate File Paths with Tilde” that will turn this

~/Desktop/photo.jpg

into

/Users/someuser/Desktop/photo.jpg

and back, respectively. Here’s a demo

HTML Lists

Finally, my goal is not to make TextBuddy a general, all-purpose text editor. I have no desire to compete with apps like that. Nonetheless, here’s a command that every other code editor offers, but I still felt fit within TextBuddy’s mission of “make a few quick edits and then take your text elsewhere”.

Turn the lines of your document into HTML list items.

Apple
Pear
Apricot
Mango

becomes

<li>Apple</li>
<li>Pear</li>
<li>Apricot</li>
<li>Mango</li>

And that’s it! As always, thanks so much for supporting TextBuddy.