Gedit-coffee-tools is a project mainly written in ..., it's free.
Tools to help coffeescript editing
External tools that help editing files in gedit editor
Scripts test gedit $GEDIT_SELECTED_TEXT variable to see if some text is selected. If nothing is selected then all text is handled. Output goes to gedit bottom pane.
See screenshots at wiki, here are the scripts.
Compile script:
if [ -n "$GEDIT_SELECTED_TEXT" ] then coffee -e "$GEDIT_SELECTED_TEXT" else coffee "$GEDIT_CURRENT_DOCUMENT_NAME" fi
This script print JavaScript
if [ -n "$GEDIT_SELECTED_TEXT" ] then coffee -ep "$GEDIT_SELECTED_TEXT" else coffee -p "$GEDIT_CURRENT_DOCUMENT_NAME" fi