Hi,
Is there any way to replace tool tip output with Growl[1] for the svn
bundle?
Tool tips are the only "non-sticky" output, but they are so non-
sticky that I sometimes cant read them at all. If the cursor is not
at the right place (99% of the time as I use a tablet pen), this is a
real nightmare.
I can't find a way to catch the output of the command, if I could I'd
send it to Growl thru growlnotify (Shell) or Ruby-Growl.
So my questions are:
1) How can I catch the output of svn commands?
2) More generally, wouldn't it be nice to add Growl to the output
options? What do you think Allan?
For those who don't know it:
Growl is a central notification system for Mac OS X.
It's free and released under BSD license.
What is nice is that you can configure how notifications will look,
if they are sticky, etc. per applications. Applications can access it
through Cocoa and Carbon API or Applescript, Ruby, Perl, Java, TCL,
Python, Shell, etc.
Here are some scrennshots[2] and the huge list of apps using Growl[3]
[1]: http://growl.info/
[2]: http://growl.info/screenshots.php
[3]: http://growl.info/applications.php
--
FredB
I'm interested how it would be possible to create an autocompletion
plugin/bundle for Textmate and ruby. I realize there is ESC, but I
would like to open a menu with say CTRL-SPACE and then see all the
possible completions based on the entered characters. Then when I
continue typing in the editor, the menu adjusts it's contents to show
only the matching entries. The user can navigate the menu and choose
an entry to be inserted in the editor. Like auto completion in
eclipse, Visual Studio or XCode.
I found this article:
http://macromates.com/blog/archives/2005/06/09/code-sense/ and wonder
what the actual state of code sense is in Textmate. Is it possible to
create a Plugin/Bundle that controls an auto completion menu?
Ruben
I am new to TextMate. I have a bunch of lines and I am trying to sort
them. I select them and use the Actions popup and choose Sort from
the menu choices under Text, the text to be sorted disappears.
I tried to run the Sort command through the Filter through command
and got the same result. Empty document.
I am sure that my newbieness is showing through but can somebody
please figure out what exactly is wrong?
Indro
I take class notes on my laptop in Markdown and organize them in a
locally-hosted blog. Last week was the first week I used TextMate
instead of BBEdit for this, and I was occassionaly getting an extra
level of indentation while typing in code blocks. For example, in one
section of my notes I typed this:
| #include<vector>
|
| vector<int> v; // vector of zero elements
| vector<int> v(250); // vector of 250 elements, initialized to zero
| vector<time24> t(10); // 10 elements, all set to 00:00
Each line is indented by four spaces (the pipe characters are meant to
represent the left margin), which Markdown will wrap in <pre> and
<code> tags. I have TM (version 1.5 [906]) set to use soft tabs of 2
characters each.
I found that hitting the Return key after each of these lines (other
than the blank one) would put the cursor on the next line with an
indentation of 6 spaces instead of 4. This may be a red herring, but
the extra indentation seemed to occur only after lines that had an
angle-bracked pair, like <xxx>, in them. So in this excerpt
| #include<iostream>
| #include<vector>
| #include "d_random.h"
| using namespace std;
the extra indentation occurred after the first two lines, but not
after the second two.
Can anyone tell me why this is happening and what I can do to fix it?
--
Dr. Drang
Hi all,
I have come across an interesting conundrum that I wonder if anyone
else has dealt with.
(it goes without saying that I am now a tm fanatic and don't know how
I lived without it).
I am starting to work with Symforny -- a php5 framework. I have a tm
project for my sf project, but have discovered that the existence of
the ._files is interfering with the execution of the symfony command
(ie it sees ._schema..xml as "empty" and does not use the correct
schema.xml file).
I found 19.4 in the manual, and I want to know if that is my only
option -- I would rather not sacrifice metadata.
Thanks,
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi -
Using TM v.1.5 (906), I selected Terminal Usage... from the Help menu. I
got a message window titled "Enhanced Terminal Usage" which explained
about the shell command "mate" and asked where to create a symlink. I
left the default location as /usr/bin and clicked then "Create Link"
button. The standard admin user authentication box pops up, I enter the
secret password. Then I get a error message box that says:
Couldn't Create Link
Creating the link "/usr/bin/mate" failed with the following reason:
Operation not permitted
Hmmm. I check to see if mate is in /bin. Nope. Okay let's check /usr/
bin. Ahh a symlink but not a valid one. The link is /Users/aurora/
Desktop/TextMate.app/Contents/Resources/mate. The correct link should
be /Users/aurora/Desktop/TextMate/TextMate.app/Contents/Resources/mate.
Which in turn is a symlink to ../SharedSupport/Support/bin/mate where it
truly is. So, I deleted the bad symlink at /usr/bin and recreated it
properly. After a rehash, where mate shows it at /usr/bin/mate. And mate
-h returns help as it should.
Conclusion: whatever process or command within Textmate that created the
original (bad) symlink in /usr/bin needs to get tweaked to add the
TextMate bundle (Textmate) into the source file name. The Textmate app
name (TextMate.app) is fine, but both are needed.
Hope this helps,
Brian Caldwell
A very minor issue, but if I use the symbol transform to place a \n
in the output for the symbol, TextMate insta-quits when I load up a
file using that language.
The specific example that crashes for me:
{ showInSymbolList = 1;
symbolTransformation = '
s/([a-zA-Z_.:]+)[.:]([a-zA-Z_]\w*)/$1\n $2/g
';
}
Like I say, very, very minor - I would have been surprised if the
symbol had actually displayed on multiple lines.
Hello,
I've committed a working version of my Mercurial bundle to the Svn
repository. There may be some rough edges (like troubles if hg is not in
your PATH) but I'll fix these soon.
Thanks to the Darcs/SVN bundles authors for inspiration. :)
Enjoy!
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005
Hi,
I frequently need to do a complete compilation, i.e. latex, bibtex,
latex, latex to update the references in the document - Using
existing bundles, latex+view, bibdesk, latex+view, latex+view I need
to click away upcoming error messages and Texniscope several times
throughout such a procedure. Has anyone a more elegant solution ? I
have to admit that my scripting abilities are not sufficient to make
my own bundle that could do that.
Christof
Hello,
I just have one suggestion for your otherwise beautiful text editing. Can
you please make code folding to display also an end tag of the block. Now
when the code is folded I can see "if {..." but the end tag is not visible.
I think it should display even the terminating "}", like "if {...}" or
"<hr>...</hr>".
Not seeing the terminating tag makes the document with folded code simply
unreadable, especially if the document is big and there is lots of code
folded. I am always searching for where the end of my block was gone.
Maybe it is only me, but I found it very confusing. Can you please fix/adapt
it? And if it's only me, it would be nice to have preferences for it, only
for me :)
Thanks,
Daniel
I really like the TODO bundle... however, something I think might be
useful.
I want to export the todo list to a file called "TODO" in the root
directory of the project. How can I accomplish this?
Eric Coleman
I'm trying to play with symbol list definitions, and things aren't
working for me.
I've created a language to play with:
{ scopeName = 'source.gk';
fileTypes = ( 'gk' );
patterns = (
{ name = 'heading';
match = '^((=+) (.+) \2)\s*$';
captures =
{ 1 = { name = 'heading.gk'; };
2 = { name = 'heading.depth'; };
3 = { name = 'heading.title'; };
};
},
);
}
And a source file that matches it:
= Heading 1 =
== Heading 1.1 ==
It's the end of the world as we know it, and I feel fine.
* And this
* Is wh a...z t I mean
...and there we go
== Heading 1.2 ==
= Heading 2 =
Using colorings in my own Theme, I can tell that the scope "source.gk
heading.gk" is being applied to the headings. Now I want them to show
up in the symbol list.
I've created a new Preferences part in the bundle:
/* preferences */
{ showInSymbolList = 1; }
and set the scope for that Preference to "source.gk heading.gk".
Unfortunately, nothing shows up in the Symbol list.
If I quit and restart TextMate, the contents of the Preference are
unchanged. (I noticed that if I put bad syntax into this preference
and quit/restart, the change doesn't stick. It would be nice if there
was a better way to "Test" if the preference is valid or not.)
I'm using Version 1.5 (906) under MacOS X 10.4.5. I can send a full
dump from System Profiler if the above does not explain why symbols
aren't working for me.
I've been using the TODO bundle and find it useful. Thanks.
Note that a checkout of the TODO bundle (from the repository) also
> require a checkout of the Support directory.
>
Uh, sure. I have Subversion and can update the bundles in
/Library/Application Support/... but how do I check out part of the app?
>From where? To where?
A little help for a Subversion novice would be appreciated.
Hi
The updated TODO works very nicely on osX 10.4 (my computer at home).
However, at work im using osX 10.3.9 (still waiting for the upgrade!).
I updated the bundles this morning and now when I run TODO I get:
/Library/Application Support/TextMate/Support/lib/textmate.rb:3:in
`require': No such file to load --
set (LoadError) from /Library/Application
Support/TextMate/Support/lib/textmate.rb:3 from /tmp/
temp_textmate.3IDEea:3:in `require' from /tmp/temp_textmate.3IDEea:3
Anyone got any ideas?
Stephen
Hey Allan,
Did you see that TM is recommended fo RoR development on ADC?
http://developer.apple.com/tools/rubyonrails.html
"Finally, we recommend that you download and install the 30-day trial
of TextMate to use throughout this tutorial. It's the editor of
choice for Rails developers on Mac OS X."
Nice.
--
FredB
I have started making use of the 'Run Script' feature for ruby files I'm
editing. All works fine and then I start to get this error:
/Applications/Tools/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tm bundle/Support/tmruby.rb:115:in `sub': wrong argument type nil
(expected Regexp) (TypeError) from
/Applications/Tools/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tm bundle/Support/tmruby.rb:115
Quitting and restarting TM bypasses the problem, but it would be good to
have it fixed! I'm on OS X 10.4.5, I'm willing to provide more info if
that helps...
Thanks in advance
- Jonathan
>From: Charilaos Skiadas <cskiadas(a)uchicago.edu>
>> Any insight greatly appreciated (and apologies if this is an
>> inappropriate post for the forum)
>
>I'd say it's very appropriate for the forum. The problem is I think
>that TextMate does not do multiline matching in the syntax, so none
>of these is going to work I'm afraid. Can't see a way out of this,
>unless of course you have the luxury of placing an empty line before
>the next >, and then matching that in foldingStopMarker.
>
>Haris
>From: Timothy Bates <timothy.c.bates(a)gmail.com>
>I had exactly this problem without output from our matrix package.
>
>My solution was to pre-process the output with a find-replace macro.
>
>The macro finds the taglines, and replaces them with "end\n($1)"
>
>That way, each block is wrapped in <tagline>...<end>
>
>Then the folding is trivial.
Thanks to both Haris and Timothy for replying so quickly to this....I
guess not having multiline matching in the syntax explains
it...thought I was going nuts!
The workaround as suggested by both was to preprocess the sequence
files (iterating over the entries using simple BioPerl - I'm pulling
the data on the fly from a RDMS anyway) and add a tab to the end of
each FASTA record...this tab is both invisible and unique to the end
of each entry and everything collapses as I want...
BTW, not only is TextMate amazing for programming/markup etc, it is
also awesome for bioinformatics analysis...I use v. large genome
datasets (flat file and RDMS) with scripting the primary mechanism of
retrieving/analyzing the data...I used to use NEdit but have ported
everything over to TextMate...using column selection, I can push
fields (like sets of gene names) as input to perl/shell scripts that
query the db and return the data formatted and highlighted...am
finding new stuff to do with it every day...
This patch fixes a problem with the Perl syntax where if you have a
function called 'submit', each call will appear as a function
declaration (sub mit).
Index: Bundles/Perl.tmbundle/Syntaxes/Perl.plist
===================================================================
--- Bundles/Perl.tmbundle/Syntaxes/Perl.plist (revision 2795)
+++ Bundles/Perl.tmbundle/Syntaxes/Perl.plist (working copy)
@@ -99,7 +99,7 @@
</dict>
</dict>
<key>match</key>
- <string>^\s*(sub)\s*([-a-zA-Z0-9_]+)\s*(?:\((.*?)\))?</string>
+ <string>^\s*(sub)\s+([-a-zA-Z0-9_]+)\s*(?:\((.*?)\))?</string>
<key>name</key>
<string>meta.function.perl</string>
</dict>
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
-----Original Message-----
From: "Benoit Gagnon"<b.gagnon(a)gmail.com>
Sent: 25/02/2006 07:49:51
To: "TextMate users"<textmate(a)lists.macromates.com>
Cc:
Subject: Re: [TxMt] TODO List
On Feb 25, 2006, at 2:28 AM, Soryu wrote:
> Hi,
>
> in an attempt to do some ruby I have revamped the TODO list command
> again, completely. It's now written in Ruby using ERB with a template.
>
> It removes a bug from the older TODO comment which would descend
> into subdirectories for non-project files. So if you had a file
> in / and invoked the TODO command it would scan your complete Volume.
> It sorts according to TODO/FIXME/CHANGED categories
> and numbers the items, so you see how much work there is still
> todo :)
>
> Soryu.
Looks nice with a single file open, but fails with a "too many open
files" error with my entire project open.
Here's the error:
/tmp/temp_textmate.mqBVat:12:in `pwd': Too many open files - getcwd
(Errno::EMFILE) from /tmp/temp_textmate.mqBVat:12:in `scan_file'
from /tmp/temp_textmate.mqBVat:27:in `scan_file' from /tmp/
temp_textmate.mqBVat:26:in `each' from /tmp/temp_textmate.mqBVat:
26:in `scan_file' from /tmp/temp_textmate.mqBVat:27:in `scan_file'
from /tmp/temp_textmate.mqBVat:26:in `each' from /tmp/
temp_textmate.mqBVat:26:in `scan_file' from /tmp/temp_textmate.mqBVat:
27:in `scan_file' ... 7 levels... from /tmp/temp_textmate.mqBVat:
26:in `scan_file' from /tmp/temp_textmate.mqBVat:39 from /tmp/
temp_textmate.mqBVat:38:in `each' from /tmp/temp_textmate.mqBVat:38
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Hi,
This is not a TextMate problem...rather a user issue but would
appreciate any advice...
I'm trying to set up folding...the file format look like this (FASTA
DNA sequence format) -
>text
agagagtttttttttt...(typically 60chars)
...multiple lines of above, number of lines varies per record
>text2
agagagtcgtttta
.
.
.
Setting foldingStartMarker is easy i.e; (^>) but it's
foldingStopMarker whcih is proving to be tricky.
As I see it, need to match the last line immediately before a new
entry denoted by ^> .
I figure a look-ahead assertion regex is required...something like -
[AGTCagtc]+ # match any string of ACGT
(?=\n^>) # positive look ahead for new line followed by >
But can't get this or numerous minor variants to work at all...
Any insight greatly appreciated (and apologies if this is an
inappropriate post for the forum)
First of all, I love TextMate. It's worth the price of a Mac just to
have such an awesome editor at one's disposal.
With that said, I have a feature request. ;-)
It would be nice if the function dropdown could be relocated to the
top of the window. CodeWarrior had its function dropdown up at the
top. BBEdit has it up there and XCode has it up at the top too.
It's more familiar to have it at the top. Second, and more
importantly to me, having it at the bottom often causes me to
overshoot with my mouse and end up in dock territory. If you have
dock magnification turned on, then you know what happens next.
It would be nice to have a configurable layout so that the UI widgets
could be tailored to one's individual preferences.
Charles Laine
claine(a)mac.com
The day Microsoft makes a product that doesn't suck is the day they
make a vacuum cleaner.
Hi there,
I'm posting here because I don't know if this has to be classified as
a bug and/or if someone has a possible solution for me....
Whenever I'm pressing the "filetype" switchbar at the bottom of the
screen, TM crashes. The weird part is, it worked allright before.
I tried switching to another local user. Textmate didn't crash while
at the other users account. I thought it had something todo with the
usersettings, so I tried deleting the com.macromates.textmate.plist
file from the ~/Preferences folder. To no avail.
Does anyone know what i could try next to get things running smoothly again ?
Thanks in advance,
Max
--
http://DLmax.org
On Feb 25, 2006, at 10:29 AM, textmate-request(a)lists.macromates.com
wrote:
> You don't need to use a webserver to run PHP. It comes with a
> standalone command line app, rightfully called "php". It will take
> stdin, output to stdout, and do all these things you cannot do in a
> web server / client browser scenario.
>
> ben
That sounds really great, I wish I knew how to do that.