public
Description: The Screen Textmate Bundle
Homepage: http://blog.monkeysthumb.org/2008/09/09/screen-textmate-bundle/
Clone URL: git://github.com/mocoso/screen.tmbundle.git
mocoso (author)
Thu Oct 29 14:07:11 -0700 2009
commit  d13acd83322acffc2f30c05e5f734081cc2f1ded
tree    c3a7b1b17c2fab24141fbc5cc1634341189c2a9d
parent  0eb6806ed7dc83108d42c0a4f466444fa4d571cc
name age message
directory Commands/ Loading commit data...
file Readme.markdown
file info.plist
Readme.markdown

The Screen Textmate Bundle

Installation

Run this:

cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/mocoso/screen.tmbundle.git Screen.tmbundle

Set up

iTerm

If you use iTerm (instead of Terminal), then set TM_TERMINAL to 'iterm' (in Textmate's Preferences)

Per project screen configuration

Create a .screenrc file in your project directory if you want to specify a particular configuration for your project.

For example for a Ruby on Rails project you might create a .screenrc file in your project directory like this

# Have the server running in screen 1
#
# Stuff is used so that when you exit the stuff-ed program, you drop back
# to the bash shell for that screen instead of immediately exiting that
# screen. This is useful for "^c, up-arrow, enter" restarting of programs.
screen -t server 1
stuff "script/server\012"

# Have autotest running in screen 2
screen -t autotest 2
stuff "autotest\012"

# Have the console running in screen 3 
screen -t console 3
stuff "script/console\012"

# Finally have a command line prompt at the project root in screen 4
screen -t project_root 4

Commands

Start Session (ctrl-cmd-a)

Starts (or reconnects to) your project's screen session.

If you have created a .screenrc file in your project directory then this will be used to initialize the new session.

Send to Screen (ctrl-alt-c)

Copies selected text (or current line if no selection made) to your project's screen session. If you have multiple windows open in the session then it will paste to the currently selected window.

TODOs

  • Send to Screen - Add support for using on files which are not in project
  • Send to Screen - Add check that there is an active screen session to send the text to