|
|
Subject: Re: Web preview is a cool idea but useless? - msg#00500
List: editors.textmate.general
On Feb 21, 2005, at 9:25 PM, Bruno Bronosky wrote:
I think that might have been a little harsh. What I mean is this:
The web preview works awesome for real time viewing of html code. I
am amazed. Really. But, I don't know anyone who write HTML anymore.
Sometimes to make a Smarty Template, I'll write HTML and then
retrofit it, but usually not. The web preview needs to be able to
read from a valid URI, like
http://127.0.0.1/projects/clientX/index.php
If you have Ruby 1.8.2 installed, you can preview a selected URL with a
command such as:
ruby << 'END'
require 'open-uri'
open(ENV['TM_SELECTED_TEXT']) {|f| puts f.read}
END
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Web preview is a cool idea but useless?
On Feb 21, 2005, at 7:25 PM, Bruno Bronosky wrote:
But, I don't know anyone who write HTML anymore. Sometimes to make a
Smarty Template, I'll write HTML and then retrofit it, but usually
not. The web preview needs to be able to read from a valid URI, like
http://127.0.0.1/projects/clientX/index.php
Are we missing the point here? I use preview for CSS more than
anything, as it requires constant tweaking and viewing. I need to
instantly see the result of a tiny change in an inline or block style
without having to save.
If this can be accomplished AND be able to easily switch rendering
engines (in Web Preview GUI), then I imagine we'll see a lot more web
developers (esp. CSS people) converting to TM. And that means profits
for the TM team.
That's why I'd like to see the Web Preview development "catch-up"
Next Message by Date:
click to view message preview
Re: Web preview is a cool idea but useless?
On Feb 22, 2005, at 6:16 AM, Allan Odgaard wrote:
I would at least like to find a solution to get Safari and/or Firefox to refresh on save. But I think the built in tool using webkit would be coolest. Has anyone figured this out?
You may want to use Stakeout [1] for that. It can monitor a file and e.g. perform an action when the file is saved (which would be to send reload to Safari/Firefox).
[1] http://michael-mccracken.net/blog/blosxom.pl/computers/mac/programming/meetWatch.html
Yes, Stakeout looks very cool. I also thought of using folder actions for this, but I don't know how to get Safari or Mozilla to refresh from a command line or AppleScript. Does anyone have a working example for this?
In BBEdit I used to use a script like this:
Save and Refresh Safari.scpt
tell application "BBEdit"
save window 1
end tell
tell application "Safari"
do JavaScript "location.reload()"
end tell
But that stopped working with one of the updates to OS X. I would like to see an AppleScript that would check to see if the current file's URI was open in any Safari window or tab. If so bring it to the front and refresh, else open a new tab with the URI.
Any ideas? I can't be the first person to try this.
Previous Message by Thread:
click to view message preview
Re: Web preview is a cool idea but useless?
On Feb 21, 2005, at 7:25 PM, Bruno Bronosky wrote:
But, I don't know anyone who write HTML anymore. Sometimes to make a
Smarty Template, I'll write HTML and then retrofit it, but usually
not. The web preview needs to be able to read from a valid URI, like
http://127.0.0.1/projects/clientX/index.php
Are we missing the point here? I use preview for CSS more than
anything, as it requires constant tweaking and viewing. I need to
instantly see the result of a tiny change in an inline or block style
without having to save.
If this can be accomplished AND be able to easily switch rendering
engines (in Web Preview GUI), then I imagine we'll see a lot more web
developers (esp. CSS people) converting to TM. And that means profits
for the TM team.
That's why I'd like to see the Web Preview development "catch-up"
Next Message by Thread:
click to view message preview
mixed-case match in plist?
I've been working on an SQL syntax plist with some more keywords but I
can't see a way to pass in a "case insensitive" flag to the regex
matches. I've reverted to something ugly like this :
match="\\b(sum|SUM|count|COUNT)\\b" ... etc
any suggestions?
thx, K
|
|