[TxMt] mysql snippet and query (getting a carriage return?)
Allan Odgaard
allan at macromates.com
Thu Dec 2 03:39:07 UTC 2004
On Dec 1, 2004, at 18:00, Paul Nordstrom August wrote:
> The snippet simply is the following: /usr/local/mysql/bin/mysql
> ${1:database} -e "${2:SELECT}"
> ... so I hit mysql, tab, then enter the DB name and then the command.
> Some sample queries are appended below.
>
> My problem is that the output begins directly after the final " in the
> -e statement. What's the easiest way to insert a carriage return here?
You can let the snippet/command be:
echo; mysql ${1:database} -e "${2:SELECT}"
Then it'll insert a blank line before the result from mysql.
More information about the textmate
mailing list