def self.extend_object( obj ); self.setup_for( obj ); end
In the above, TextMate (v1.0.1) is treating everything from the first
paren to the last paren as the argument list. Should account for the
above, as well as:
def foo( bar=")" ); puts( 'yay' ); end;
--
(-, /\ \/ / /\/
(copied from http://interblah.net/2004/10/22/textmate-web-preview/ )
I have posted some feedback about the Web Preview to the
[wiki](http://wiki.macromates.com), along with a
[screenshot](http://www.lazyatom.com/media/images/textmate-web-
preview.jpg). I'm happy to provide my revised .nib file too.
In summary, and in order of perceived importance, the changes are:
* changed the base font size of the OakWebPreview to 14 - this way it
matches at least my setup for Safari and Firefox, and I'm not aware of
every having changed the defaults in those apps. Either way, ENSURE
that the font sizes are similar, otherwise the preview is pretty much
useless.
* move, resize, relabel and re-anchor the "Back", "Forward", and
"Reload" buttons. The top row of controls is now Back, Forward, URL,
Reload. This more closely-matches real browsers. The Reload could be
placed to the left of the URL, the important point is that these
controls go on top
* Remove the window texture - it's unnecessary, and unattractive. This
isn't a rant against metal, I like metal, it's just *better* as aqua
here.
* Resize the "Show Options" checkbox to "small", and place it flush
against the bottom of the view. Then Increase the vertical size of the
OakWebPreview accordingly.
### Feature Requests
1. Have the web preview always shown, if it has been opened. It should
then display whatever is in the selected tab, if the file meets some
"web previewable" criteria. If the current tab is showing an html file,
or a php file, or a .asp file, change the web preview to it, otherwise,
leave it displaying the last file that did match.
This will enable a lot of very useful editing, like changing the CSS
and having the preview update automagically, as outlined next.
2. Have another option which updates the preview, after whatever delay,
if ANY file in the project is changed. This way, I can:
* edit an html, open the web preview
* check the NEW "update if any file is modified" option on the web
preview (a project-persistent option)
* switch to the CSS (or JS, whatever) in the project. Note that
since CSS/JS aren't "previewable", the web preview window still shows
the html file
* as changes are made to the file, the web preview is told to
update, with whatever delay
* now, the consequences of any changes I make to external files are
updated automatically in the preview
This feature would REALLY kick ass. You know it.
3. Keep the "Base URL" persistent within a single project. Store the
base url within that project! This doesn't require a preference, just
each time it's manually updated, change the entry in the .tmproj file
None of these features/fixes are very hard, nor can I think of any way
that they negatively impair the current workings of TextMate - what are
the chances of seeing any of them in 1.0.2?
i'm not sure when it happenend, but it sopped working, so I plopped a
copy of Markdown.pl in:
~/Library/Application Support/TextMate/
which is same as:
/Users/tim/Library/Application Support/TextMate/
yes?
and now I get:
Base URL: file:///Users/tim/Documents/projects/GTD/waitingOn
/bin/sh: line 1: /Users/tim/Library/Application: No such file or
directory
help???
This is a very simple set of snippets to automate your PHP Documentor
tags [http://www.phpdoc.org/] while writing PHP classes using TextMate.
download: http://farmdev.com/downloads/PHPDoc.tar.gz
Here are the commands:
phpdoc_c : creates a PHPDoc class block
phpdoc_d : creates a PHPDoc definition block (constant definition)
phpdoc_f : creates a PHPDoc function block
phpdoc_h : creates a PHPDoc header for the top of your script
phpdoc_v : creates a PHPDoc class variable
** There is a very nice feature in TextMate that allows you to
reference a cursor position in a snippet by simply repeating the
numeric variable. What I like to do when writing functions is always
comment the end of the function with its name so you know what the last
trailing bracket is closing. This is fully automated for class and
function blocks. As an example:
function do_something($input)
{
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
} // END function do_something($input)
I must also say that with TextMate 1.0.1 I am sold! Many thanks to the
dev team and hopefully my license will help keep things moving. And
feel free to include this in the default package if you see fit.
---
Here is a complete example of how a script would look using these
snippets :
<?php
/**
* Description of document
*
* @author Author Name
* @version $Id$
* @copyright Author Name, 22 October, 2004
* @package default
**/
/**
* Define DocBlock
**/
/**
* undocumented class
*
* @package default
* @author author
**/
class Some_Class
{
/**
* undocumented class variable
*
* @access public
* @var string
**/
var $some_var;
/**
* undocumented function
*
* @access public
* @return void
* @param string $input
* @author author
**/
function do_something_cool($input)
{
} // END function do_something_cool($input)
} // END class Some_Class
?>
I'm working on a big php class file (with heavy coloring syntax bundle).
I modify something.
I save the file.
I go to Safari and test.
When I switch back to TextMate, it looks like TM is refreshing
everyhing, being unavailable for 2 or 3 seconds with the spinning
wheel. Then it seems to move to the caret (like when one presses
command-J).
Note that this does not happen if I don't save the file before.
Dominique PERETTI
http://www.lachoseinteractive.net
Can anyone tell me how I should checkout the svn bundles (java + xml)?
I get this error:
Expected version '2' of repository; found no version at all; is
'/media/subversion/repos' a valid repository path?
Kind regards Allan
i'm part of those weird guys that 'HATE' text wrapping.....
in text mate disabling text wrapping leads the gutter to disappear when
scrolling horizontally .... do the gutter has to be attached that way
to the text? i don't think so ...it should be a static bar on the left
of the GUI..... no? seems crazy to all of you ?
thanks
olivier
Hi there
When I fired up the latest release, it seems that it has overriden my
custom PHP/HTML syntax coloring.
I had my own version in my home directory in the correct location.
All of a sudden my php pages are with a dark background (#2e2e2e) when
set to HTML(PHP) coloring.
The weird thing is I can't find a reference to this hex value in any
of the bundle files so I'm at a loss to correct it.
I thought the bundle file saved as HTML-PHP.plist set the syntax
coloring for HTML(PHP). If so, why is my local version with it's
background color of #efefef not taking effect?
Any clues appreciated...
bongoman
Hi,
It may just be me but Find doesn't seem to work very well at the
moment. (b8 btw)
I've got a reasonably large file open (about 400 lines) and if I have
no text selected I can Find no problem.
If all of the text is selected (Through Select All) then Find doesn't
work with either 'Entire File' or 'Selected Text'.
If a small portion of text is selected then 'Entire File' appears to
work but 'Selected Text' functions the same as Entire File, i.e. it
ignores the selected text boundaries.
Anyone seeing the same thing?
Thanks,
Richard