Posts Tagged subversion

TextWrangler with Subversion on Mac

Amazing what you’d find if you read the manual!

Even though TextWrangler is a window-based editor for the Mac, it comes with this useful terminal command: edit. Executing this command loads TextWrangler from the command line.

How is this useful for a window-based environment like the Mac? Well just recently I was configuring my Subversion environment on my Mac and wanted to use TextWrangler for my comment editing needs. Using the edit command, making this configuration is as simple as loading up the config file (by default in ~/.subversion/config) and changing the editor-cmd entry to:

editor-cmd = edit -w –resume

-w blocks the edit command from returning until the file is closed in TextWrangler.

–resume will restore the last top-most app before TextWrangler launched. In this case, the Terminal window.

config1.png

Now every time I checkin, the svn command will automatically launch TextWrangler with the comment file for me to fill out!

,

No Comments