I've attached a few simple commands I hacked up to practice my ruby.
There may be better ways to do these so any input is welcome.
The first one "Show TODO - ignore list" is pretty basic. On the
first line of the script it takes an array of patterns of files to
ignore while parsing your project. Its should be pretty easy to
enter your list even if you don't know ruby, just follow the
example. Ideally I'd like to make it so you can set the list
externally somehow to make it easy.
I wrote this because the TextMate.each_text_file was parsing
everything in the project folder, regardless if I removed it from the
project or not. I have a "vendored" version of edge rails in one of
my project folders, and seeing a list of all of DHH et al.s comments
was hindering my use of the TODO.
The other two commands go together.
"Project Statistics" displays the total word count, line count, and
bytes on the tool tip for the entire project.
"Project Statistics - Full Output" displays the same information for
each file in the project as well as the totals as html
Both of these commands use each_text_file with an ignore list as
well, so they suffer the same limitations and advantages.
I wrote these cause I had to work on a horrible web system from the
pre-standards days all day today and I wanted to see just how ugly it
was. I found out - they have more javascript for their drop down
menus alone then the entire prototype library contains.
William

p.s. Allan: If I run any of these commands, regular todo or my
versions, on a group of files from a top level directory like /Users/
username my textmate will lock up for a very long time, at least
unless of course I have a lot of ignore flags set. Not too hard to
avoid, certainly less than ideal. Is there a better way to iterate
over project files?
p.p.s Thank you for all your hard work and amazing program.
I had no luck changing the key using the DefaultKeyBinding.dict route :(
On Sep 22, 2006, at 1:26 PM, textmate-request(a)lists.macromates.com
wrote:
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: September 22, 2006 12:59:04 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] re: crtl-esc not activating the bundle menu
> anymore
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 22/9/2006, at 18:23, ira cary blanco wrote:
>
>> > > I tried every fixes I read about: Setting the prefs in
>> Terminal (I
>> > > don't remember the exact command)
>> > What happens if you set it to another key than ⌃⎋?
>> How can it be set to another key?
>
> http://lists.macromates.com/pipermail/textmate/2006-April/009955.html
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
fax: 631.784.2201
email: blanco(a)samsontech.com
web: samsontech.com
Is it possible to change Ctrl+S shortcut to Ctrl+R?
I often use bash's Ctrl+R for analogous search mode, so this shortcut
makes more sense to me.
BTW: I coudn't find Cltr+S anywhere in menu. Where is it?
--
regards, porneL
Suppose I have a myFile.html file containing a link
<a href="myFile.html#myAnchor"> Go to anchor! </a>
which points to an anchor in the same file:
<a name="myAnchor"> I knew you would come here! </a>
When I load the file in the TextMate HTML window,
apparently, the link to the anchor does not work (when
I click on it, the HTML page goes blank).
What am I doing wrong?
Thanks,
Piero
I am migrating from emacs to textmate. Emacs has compile command. That
basically allows you to run lets make in the directory of the current
file. Is there a bundle out there already?
OK, I'm a dummy! After searching the lists and manual and help, I
still can't find the way to reformat my .java code in TM. How do I
do that?
Thanks!
-- Owen
Owen Densmore 505-988-3787 http://backspaces.net
Redfish Group: 505-995-0206 http://redfish.comhttp://friam.org/
When I post to my blog from TM, it works fine, but a new line gets inserted
at the top of my post:
2006-09-29 23:56:35.942 open[1013] No such file: /name-of-my-post
And then, of course, it doesn't open up in my browser. I'll also note that I
have been able to post to other blogs properly... so it must be something
with my typo configuration?
Thanks!
Adam
Howdy.
I'm in the middle of writing a live updating command for ZenTest
autotest.
I want to use the RubyMate error handling stuff to make all the log
links live and such.
Is that core functionality usable separate from RubyMate?
thomas Aylott — subtleGradient — CrazyEgg
Hello -
I mistaken removed the File Pattern that appears in the Advance >
Folder Reference section of the Preference Panel.
Can someone send me the default File Pattern, or let me know how to
reset it...
Thanks!
- Chris Ryan