Snapshot Coda Plug-in
I authored a very small plug-in for Coda that will save a copy of an open document with a timestamp appended to the name. The reason being that I constantly find myself making small edits to sites that I don’t maintain myself (which makes putting them under version control impractical), and I want to make a quick backup of a file I’ve downloaded before applying my changes. I realized today that it would be worth my time to automate the process of copying the file and renaming it.
To make a backup of
example.txt, open the file in the editor, go to
Make Timestamped Snapshot or hit Ctrl+Option+Cmd+S, and
example_20110412.txt will be created in the same directory. I’ve only included the year, month, and day in the timestamp to suit my usage, but it can be easily modified if need be (just edit the bundled shell script).
Update (02/08/2012): Updated for compatibility with Coda 2.