Mark Gandolfo's Blog
Curl From Within Text Mate
I have created a small command for textmate that lets you curl a file from within textmate.
The source is on github
Installation
git clone git://github.com/markgandolfo/tmbundle.curl.git
Navigate to the download directory and double click on the curl.tmbundle file
How to use
^ ⌥ ⌘W will pop a dialog box up, place the url in text field and press enter.
The file will download and your project drawer (or project+ drawer) will refresh!
Possible Todo
- Add progress bar for larger files
- Possibly download to the current open file path (maybe add a checkbox or something)
- Maybe add some sort of output if the url can't download for some reason (404, 500, etc.)
Restart Your Rails Server Within Textmate
I tend to find myself needing to restart my rails server in development mode quite often, and found that mongrel like passenger also restarts when tmp/restart.txt is present. So I created a simple command for Textmate which will easily restart the server for my current app i'm working in.
To install:
cd ~/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Commands
wget http://markgandolfo.com/system/files/2/original/Restart_Server.tmCommand
Then restart Textmate/Reload Bundles.
To use it simple press ^⌥⌘ R buttons, and your app will restart