Hello, This is my first post to this list, so I hope it's ok. been using Texmate for web site development with PHP for a while now and love it. However, I always preview pages in Safari because of the limitations of the included web preview. With the new html output of the latest beta I was reminded again of it, but found the same problems.
I think the issue of it closing when you change tabs has already been brought up, which is really annoying if you want to edit a css file, for example. Could its behaviour be that it always stays open. If you want to preview another page, it could then open as separate tab in the preview window. Only the selected tab need be automatically refreshed, but you could easily switch to your other previewed pages.
Another thing that I'm not sure if any one has mentioned is that when you pipe it through the PHP binary, require() and include() don't work when the files have a relative path to the script. Any apache server env variables are also bypassed so you can't reference 'SCRIPT_URI' etc. I don't really want to change every script to have absolute paths, as that becomes rather inflexible. would be glad to hear any solutions anyone might have.
thanks, max
On Feb 2, 2005, at 9:25 AM, max@machinate.org wrote:
Another thing that I'm not sure if any one has mentioned is that when you pipe it through the PHP binary, require() and include() don't work when the files have a relative path to the script. Any apache server env variables are also bypassed so you can't reference 'SCRIPT_URI' etc. I don't really want to change every script to have absolute paths, as that becomes rather inflexible. would be glad to hear any solutions anyone might have.
from my noodling, it appears that commands in textmate run from : /private/tmp/502/TemporaryItems
you may be able to alter your command to something like this:
cd `dirname $TM_FILEPATH` cat $TM_FILEPATH > php
(just a guess, haven't tested)
k
thanks, max
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Feb 2, 2005, at 18:53, kumar mcmillan wrote:
from my noodling, it appears that commands in textmate run from : /private/tmp/502/TemporaryItems
It depends... Commands prefer the project directory, if there is none, it uses the directory of the active file (if it has one).
But in other places where shell commands can be executed, it will use the temporary directory.