hi. In my project drawer, i can click certain files and they open in the textmate editor window: It's a Rails project, model files and other .rb files are OK
but when I click on the files ending on .erb, nothing happens. For instance a file in /app/views/reports/index.html.erb
It doesn't open. The only workaround i can figure out is to use command+T.
Did i unintentionally touch a switch? Am I overlooking something obvious?
I'm absolutely new to Textmate (bought my mac roughly a week ago) so please point me to an obvious answer/link if possible.
/Jesper
PS. my version 1.5.7 (1464)
On Apr 24, 2008, at 4:52 PM, Jesper Rønn-Jensen wrote:
hi.
In my project drawer, i can click certain files and they open in the textmate editor window: It's a Rails project, model files and other .rb files are OK
but when I click on the files ending on .erb, nothing happens. For instance a file in /app/views/reports/index.html.erb
It doesn't open. The only workaround i can figure out is to use command+T.
Did i unintentionally touch a switch? Am I overlooking something obvious?
I'm absolutely new to Textmate (bought my mac roughly a week ago) so please point me to an obvious answer/link if possible.
/Jesper
PS. my version 1.5.7 (1464)
I'm not sure, but I think TextMate honors whatever Finder has set for the default application. I tried opening up a jpg file in textmate and it opened it using preview.
Check under 'Show Info' on a ERB file.
Thanks a lot Derek! That was my exact problem. Hmm a very strange default: textmate chooses NOT to open the files you click in textmate. I'd consider changing that -- at least for non-binary files :)
Allan, any plans for changing that with version 2?
/Jesper
On Thu, Apr 24, 2008 at 11:12 PM, Derek Belrose derekb@realgeeky.com wrote:
not sure, but I think TextMate honors whatever Finder has set for the
default application. I tried opening up a jpg file in textmate and it opened it using preview.
Check under 'Show Info' on a ERB file.
On Apr 24, 2008, at 5:23 PM, Jesper Rønn-Jensen wrote:
Thanks a lot Derek!
That was my exact problem. Hmm a very strange default: textmate chooses NOT to open the files you click in textmate. I'd consider changing that -- at least for non-binary files :)
Allan, any plans for changing that with version 2?
/Jesper
On Thu, Apr 24, 2008 at 11:12 PM, Derek Belrose derekb@realgeeky.com wrote: not sure, but I think TextMate honors whatever Finder has set for the default application. I tried opening up a jpg file in textmate and it opened it using preview.
Check under 'Show Info' on a ERB file.
Jesper,
Try this, put an ERB file in your drawer, right click (option+click) and choose "Treat files with '.erb' extension as Text"
Then textmate will open them up in itself from now on. I don't know which version you are running, I know i'm running bleeding edge stuff so it may not be available in stable.
-Derek