Making TextMate and sqlplus play nice

Posted by Jesper on August 17, 2007

As described in the Calling TextMate from Other Applications chapter in the TextMate Manual

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

Trackbacks are closed.

Comments

Comments are closed.

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