Just wondering, is there currently a way to get the md5 of the current document (whether its changes have been saved or not) from within textmate? I often have to compare a copy of a document I'm working on with what's on a remote server, and since I can open it in TM from within my ftp client, it would be potentially easier than downloading a copy to save somewhere on disk and running the md5 command seperately.
Does something like this exist? If not, perhaps I'll look into implementing it myself. Thanks!
On 17 Sep 2007, at 09:49, EvanK wrote:
perhaps I'll look into implementing it myself
This is easy to do:
• Open the bundle editor (Bundles → Bundle Editor → Show Bundle Editor…) • Make a new command and give it a name • Select “Entire Document” for Input: • Select “Show as Tool Tip” for Output: • Put the following in as the command:
md5sum | cut -b 1-32 | pbcopy echo The MD5 sum has been copied to the clipboard
• Close the bundle editor and run the command