Making TextMate and sqlplus play nice

August 17, 2007 — 1 Comment

As described in the “Calling TextMate from Other Applications”:http://macromates.com/textmate/manual/using_textmate_from_terminal chapter in the “TextMate Manual”:http://macromates.com/textmate/manual/

bq. There is one command which does not support giving arguments in the EDITOR variable, it is crontab (which is sort of obsoleted by launchd). If you need to use it, you can create a symbolic link to mate with a _wait suffix which implies -w.

Well, as I found out a while ago, there’s another command that has the same problem: *sqlplus*. But if you follow Allan’s instructions, you can make TextMate work with sqlplus:

ln -s mate ~/bin/mate_wait   # run this once to create the link
export EDITOR='mate_wait'    # use in your ~/.bash_profile

Assuming you’ve already created a symlink to mate and that ~/bin exists (you could also use /usr/local/bin or some other preferred location). Now, in sqlplus simply type ed or edit as usual, and your commandline will open up in TextMate. Yay, one less reason to ever edit any text outside of TextMate.

Trackbacks and Pingbacks:

  1. Tweets that mention Making TextMate and sqlplus play nice -- Topsy.com - January 11, 2011

    […] This post was mentioned on Twitter by  Textmate Tips.  Textmate Tips said: Making TextMate and sqlplus play nice: http://bit.ly/g1Frlu […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s