I'd personally be very interested. I just started doing a few simple
but much needed additions to the bundle as well (like folding blocks
for conditionals, do's etc.), but i'd rather save the time if
somebody already added the things that are needed. I think the
current bundle is great in terms of lowest-common denominator, and as
such it may be that people are opposed to expanding it to the point
where it becomes a matter of taste and style. But i guess you could
talk to the maintainer (who?) and see if he might be open to any of
your additions. In any case, I (and surely others) would love to take
a look at your enhanced bundle. @everybody, Is there a place where to
upload alternative bundles?
Sebastian
James Edward Gray II wrote:
> Hi all.
>
> I use TextMate for Ruby programming all day everyday
> (professionally). I just recently bought a new computer and am
> slowly migrating everything over. I wanted to rebuild my TextMate
> snippets and commands in the process, so I could reevaluate what
> I've created, fix minor annoyances I have found in usage, and
> improve on what I have created.
>
> I have a pretty large set of additions in my old Ruby bundle. I
> have tons of snippets for iterators, testing and common language
> constructs, a few handy commands (like switching { ... } to do ...
> end), and even snippets for many standard libraries (like
> YAML::dump/load and an OptionParser skeleton).
>
> My questions are:
>
> 1. Is there any interest in me providing these additions publicly?
> 2. Would if be allowed for me to add some or all of this to the
> default Ruby bundle?
>
> I figure I'm going to be entering all this again anyway. It
> doesn't matter to me if it's just for me or for all of us. I
> didn't know if there is some desire to keep the default bundles
> pretty small or anything though. Let me know if there's interest
> and, if so, how best to provide it.
>
> Thanks.
>
> James Edward Gray II
Hi all.
I use TextMate for Ruby programming all day everyday
(professionally). I just recently bought a new computer and am
slowly migrating everything over. I wanted to rebuild my TextMate
snippets and commands in the process, so I could reevaluate what I've
created, fix minor annoyances I have found in usage, and improve on
what I have created.
I have a pretty large set of additions in my old Ruby bundle. I have
tons of snippets for iterators, testing and common language
constructs, a few handy commands (like switching { ... } to do ...
end), and even snippets for many standard libraries (like YAML::dump/
load and an OptionParser skeleton).
My questions are:
1. Is there any interest in me providing these additions publicly?
2. Would if be allowed for me to add some or all of this to the
default Ruby bundle?
I figure I'm going to be entering all this again anyway. It doesn't
matter to me if it's just for me or for all of us. I didn't know if
there is some desire to keep the default bundles pretty small or
anything though. Let me know if there's interest and, if so, how
best to provide it.
Thanks.
James Edward Gray II
On Apr 2, 2006, at 18:42, Allan Odgaard wrote:
> On 2/4/2006, at 20:27, Michael Sheets wrote:
>
> > What you could do is move them to a custom bundle "Ruby James" or
> > similar then post the link on this list. Let people take a look. :)
>
> That sounds like a good idea. The Ruby bundle does IMHO need some
> clean-up before more stuff is added.
Fair enough, I will place my additions in a new bundle as I create
them and put it online for others to examine...
James Edward Gray II
All,
Sorry to bother the list with this stupid question, I know nothing
of RegEx and have been trying to grasp it, and the way it works in
TextMate. Basically for my needs all I need to figure out is how to do
if statements. Here is what I am trying to do:
Snippet:
function():$1 {
}
if $1 != Void, then put in a return statement like this:
function():Array {
return
}
Which I can add the variable name to return later.
Any help and I will be extremely grateful. Thanks for your time.
best,
Aaron Clinger
http://aaronclinger.com
There's a great site for a new web framework called SQL on Rails.
http://www2.sqlonrails.org
They even have an 8 minute screencast where they develop a full internet search
engine. The magic and power of the system is thanks to textmate snippets. Just
thought you all would enjoy spotting textmate in something this brilliant.
--clm100
It looks like TextMate only recognizes Perl-style backreferences when
doing a regular expression search/replace. (e.g. $1, $2, etc.) I'm
used to the style typically found in text editors: \1, \2, etc. Is
there any way TextMate can be made to recognize the latter style?
Trevor
Is there a way to use latexmk in the typeset and preview command in
the LaTeX bundle with any of its options---like -pvc say?
Thanks. All the best,
Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
feature request:
redo last action
redoes the last snippet, macro or command that you just did.
I have a lot of commands and snippets and things that i only use once
every so often. So I don't give them a tab completion or shortcut.
Many of them I would like to use multiple times in a row.
Currently, i could record a temporary macro, run the command and then
rerun the temp macro.
But I never remember to do that.
It would be way handier to have this extra function, too.
Thankyou, and goodnight everybody!
I'm trying to disable auto-indentation for the lines below starting
with 'case'. This is how I'd like the code to appear:
switch ($where) {
case 'start' :
# code...
break;
default :
case 'middle' :
# code...
break;
case 'end' :
# code...
break;
}
However, by default, the php bundle wants to format it like this:
switch ($where) {
case 'start' :
# code...
break;
default :
case 'middle' :
# code...
break;
case 'end' :
# code...
break;
}
I've added this preference item to the php bundle for source.php, but
it's not working:
/* preferences */
{
unIndentedLinePattern = '^\s*case\s+.*$';
}
Am I doing this right?
Thanks,
Q
Hi everybody,
I am a 25 year old bioinformatics student and passionate rails developer
from germany. However, for my upcoming diploma thesis OCaml will be my
programming language of choice. Of course I would like to be able to stick
with Textmate and code OCaml in Textmate but unfortunately there is no
integrated default syntax highlighting for OCaml and I could find only one
bundle for OCaml. The bundle is listed on the old wiki page
http://wiki.macromates.com/textmate/show/Bundles102.html ,but unfortunately
its link http://ianp.org/articles/textmate/OCaml.tmbundle.zip is broken.
Does anybody know where I can download this package or maybe point me to
another OCaml bundle with syntax highlighting?
THX and sorry for my bad english,
Andreas
After running Tidy on documents with a doctype of
XHTML 1.0 Transitional
The doctype definition is replace with the "Strict" version.
I did a little digging and there is a -doctype switch in Tidy, but
setting it to
--doctype -transitional
in the Tidy bundle has no effect... Transitional is still changed to
Strict.
Any ideas how to fix this?
eo
Hello all,
As you may have noticed, the cycle of TextMate betas has slowed down
recently. When talking to Allan yesterday, I asked him about the
progress of reworking TextMate's innards. He confided me that during the
recent months MacroMates has been cooperating with TheCodingMonkeys
working hard to exchange experiences and to merge their editors.
Later today a new beta of SubEthaMate will be released, as a combined
effort between TheCodingMonkeys and MacroMates. This new beta will
feature preliminary support for both of SubEthaEdit and TextMate
strongpoints, collaboration features, access to the Unix shell, and
remote editing over (S)FTP.
The beta will of course be very rough around the edges, and it will
require extensive testing and feedback to get all this right. Allan told
me that the new beta will be released only to the TextMate community
later today. The public announcement will follow when SubEthaMate is
more stable.
To be certain, I contacted one of TheCodingMonkeys, Martin Pittenauer.
He confirmed that they are working with Allan to create a stronger
editor. "TextMate and SubEthaEdit both have the same philosophy, selling
their editor at a low price and placing high value on usability. It is
time we combined our effort and knock BareBones off their throne.", he
commented.
He also told me that they are waiting for SubEthaMate to become
reasonably stable, before releasing it to their community.
I can't wait to get my hands on the new beta!
Jeroen.
Hey folks,
To the maintainer of the Java language bundle, I just pulled the
latest from svn. I didn't realize if the Java.tmbundle was update,
but there are (IMHO) some bugs in the language grammar that I'm
running accross that I don't think I've seen before but it's possible
I just wasn't looking:
FIRST:
When the cursor is immediately outside of a block comment, the scope
still shows "comment.documentation.java" or "comment.block.java" when
I don't think it should be (imagine the ^ character to be the cursor):
Example:
/* some comment here */^
-- or --
/**
* My method does this
*/^
the scope on the outside of the closed comment is being recognized as
comment.block.java and comment.documentation.java respectively when
really I'm out of the comment blocks.
SECOND:
All the code after an abstract method is scoped to
meta.definition.method.java, like for Example:
public abstract void doSomething();
// all code in the file below this is scoped to the
meta.definition.method.java
if I add a {} at the end of the abstract method signature the scope
gets fixed -- but, y'know ... then the compiler complains :-)
Thanks,
-steve
I'm trying out TextMate for the first time and I love what I see, but
I'm unable to run commands of any kind. They all fail with:
interpreter failed: Malformed Mach-o file
I've double checked my download and all the relevant parts of my
system. It's hard to imagine that this is very common, but has anyone
seen it before?
Thanks,
Patrick
A month or two ago I started making a Coldfusion bundle and haven't
look at it since... and now I'm back doing some CF work again the
highlighting is starting to piss me off, so I thought I'd ask you
guys: how do I do a bundle pattern that matches nested comments?
In CFML you can have
<!---
<cfif something eq true>
<!--- A nested comment --->
</cfif>
--->
and the whole thing should be syntax coloured as a comment.
The basic pattern at the moment is:
{
name = 'comment.block.html';
begin = '<!---';
end = '--->';
}
any ideas how to get nesting working?
-- Tim
Dear Allan,
I compiled the InputManager from svn and installed it similar to what
I found here on this list's archive (i.e. put both the .bundle and
Info into ~/Library/InputManagers/Edit in TextMate --- this works!
Great, now I can write my emails in TextMate (which is sooooo much
better than Mail.app) using Markdown etc.
Also the problem with the PropertyList bundle was odd. I deleted the
bundle from Disk and re-imported it from the svsn and now it is
available (again?).
And as a side note and feature request: Would it not be really great
if TextMate would take over in ALL Cocoa Apps? ;) Not just as an
InputManager, but as default editing view ;) Ahh, just dreaming again.
Daniel
Dear folks,
Is it just me, or does the CodeBrowser not work when TextMate is run
in Intel-Mode? When I start it in Rosetta everything is fine, in
intel-mode I have no CodeBrwoser, but instead a:
2006-03-22 01:00:00.774 TextMate[5326] *** -[NSBundle load]: Error
loading code /Users/dekay/Library/Application Support/TextMate/
PlugIns/TmCodeBrowser.tmplugin/Contents/MacOS/TmCodeBrowser for
bundle /Users/dekay/Library/Application Support/TextMate/PlugIns/
TmCodeBrowser.tmplugin, error code 2 (link edit error code 0, error
number 0 ())
2006-03-22 01:00:00.775 TextMate[5326] instance TmCodeBrowser plugin
doesn't have proper initializer
on my console…
too bad,
Daniel
I've written a little command to help me grep the current file and copy
matching lines to a new document. I've copied the example of "Search the
TextMate Mailing List" for the CocaoDialog. However my implementation is
stalling and I need to killall CocaoDialog to free it up.
Save: Nothing
Input: Selection
Output: Create new document
---
res=$(CocoaDialog inputbox \
--title "Find matching lines" \
--informative-text "Regular expression to match lines:" \
--button1 "Find" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
pattern=$(tail -n1 <<<"$res")
perl -ne "print if /$pattern/";
The only thing much different here from the "Search mailing list" code
is the use of stdin.
Hmmmm?
Q
Hi everyone,
Not sure if this is possible. Anyone ever use Zend Studio? The auto
competition and function prototypes are simply amazing.
Basically, completion happens automatically, and gives a nice drop
down with prototype information in it. Also, if you are inside a
functions brackets, it will show a prototype of the function, based
on the PHPDoc comments (if it's available).
Is this possible in the current version of textmate? I imagine it
would have to index the project to get this going. If it's not
possible, is it every planned? I immagine it would be useful for
ruby, javascript, and anything else really provided it had a method
to parse the source code in the project.
Regards,
Eric
Since TextMate already has such great support for Markdown I'm
wondering why Smartypants has been left in the dark.
I was reading this: http://rentzsch.com/notes/contemporaryQuill
...and wondering why a solution like this has not already been
implemented. The only reason I don't want to use this is because it
will break when TextMate has been updated.
Is there an implementation like this already out there?
So, in the process of writing the screenwriting bundle I'm working
(and using every day) I've come to the conclusion that it might be
cool to look into subversion for working with screenwriting projects.
Obviously I know nothing about subversion, so my question is:
Is this stupid?
Do you guys have any good resources for getting started with subversion?
Is there a better solution (since I'm just using text-documents)?
I can't seem to find a really good intro on how to use TextMate with
Subversion, did I miss it somewhere?
Thanks in advance.
>> [...] TextMate seems to show tabs and line endings but not any more of
>> the non-printing characters that BBEdit shows
>
> It does show unprintable characters, but not spaces.
It's good to know I wasn't doing something wrong. However, if the
functionality exists [and has already been written/tested] why keep it out
of a release?
Trust me, I want to fall in love with TextMate, but there's some things that
can't yet be done in TextMate -- I find myself jumping back to BBEdit in
order to accomplish these tasks.
> I found that to look too busy and the spaces should be indicated by where
> there are no other ,,invisibles% shown
I respect the consideration to keep the application lean and fast, but when
should a developer's personal preference get in the way of what his/her end
user's want out of a product?
> (I know there are requests for configuration here).
A simple option or preference would be a welcome addition and wouldn't
require people to use it. BBEdit conditionally allows one to show invisibles
and then selectively choose whether or not spaces are shown.
>> I was able to find the ShowInvisibles Bundle for TextMate that aims
>> to highlight tabs and spaces in different colors but it doesn't
>> appear to work with my setup and/or preferences.
>
> It was created prior to the theme system. What it does is give a
> certain scope to spaces (and other characters), but for that to show,
> you would need to add a theme rule for it.
This information is encouraging, but the bundle doesn't come with any
documentation or configuration instructions, only to edit the
Invisibles.plist to suit ones' needs.
Could you put together an example of a theme rule that would highlight the
spaces in a document using this bundle?
Allan,
I am curious: the PropertyList bundle keeps getting lost on my
system. No apparent reason why. A svn update does not tell me about
any changes; it is still installed - yet the bundle editor does not
list it in its filters list. I have to install it into ~/Library/
Application Support/TextMate/Bundles/ else it will not be listed at
all?! odd.
Daniel
Hi all,
I'm currently working on a website where I'm going to add text
through html forms. I have tried the Edit in Textmate option, but it
seems to be an issue with the encoding.
The site I'm working on uses iso-8859-1 as encoding, and when I get
the text in Textmate all Norwegian characters are not represented
correct. I guess this is because Textmate uses unicode in its
internal representation of the text. Are there any workarounds for this?
--
Mvh/Regards
Geir-Tore Lindsve
lindsve(a)bluezone.no
http://www.lindsve.net
I have a project with about 500 files that split neatly into a few
categories. Is there some way to split the project drawer or otherwise
get two separate scrolling views of different subsections of the project?
And/or can one get a multi-pane hierarchical view (like one of the
Finder views)?
It looks like Go to File... will often be the quickest way to open a
file, but sometimes I'll have to manually hunt through the hierarchy and
some hints on how best to wade through it would be much appreciated.
-- Russell