This is the feature I miss the most (when writing Rails code).
How it works :
1°/ select a directory, and
2°/ mark it as "exclude from 'find in project'"
context: in Rails, the log files and 3rd party code (EdgeRails, plugins,
javascript libs, docs ..) are all in your project tree
=> your code can be less than 10% of the total files/code present in
the project
===> most of the results entries are useless, because out of scope.
Alain
I noticed that the LaTeX bundle provides the same shortcut for two
different commands:
BibDesk Completion
Insert Label From Document
Both are mapped to ⌥⎋. Is this a bug or a feature?
Trevor
Hello
I have this word in completation list "split-path"
if I type "spli" and esc key it does work
if I type "split-" and esc it doesn't
what should I do?
also for color syntax, I'd like "value?" to be recognized
but this doesn't work:
{ name = 'rebol.words';
match = '\b(value\?)\b';
},
thank you!
Will
hello I'm new to TextMate, Hat down to the creators/developers
I'm coming from bbedit..hem..hemm no comment..
I'm trying to build a bundle for the rebol language
and regex is new to me.
Please, help on this
"^""
^" is escape "
all between " and " is a string
this is my code
{ name = 'rebol.string';
begin = '"';
end = '"';
},
which obviously dosn't work for this case.
also any link to great oniguruma tutorial would be great
Thank you and have a great day!
Will Arp
i've written a few scripts to make editing of remote files easier.
then i noticed that TM supports the "external editor
protocol" (http://www.merzwaren.com/external_editor.html), which
sounds like it would make some of my hacks quite a bit cleaner, but
only if i was able to deal with applescript events. i haven't been
able to find tools to make a ruby script (or any other scripting
language) able to receive applescript events (yes, i know how to send
them, although that's still ugly), which means (as far as i can tell)
that i'd need to start mucking with obj-C...
but then it occurred to me that it ought to be easy for TM to support
a more scripter-friendly version of the same protocol, e.g.
mate --notify <path> <file>
would associate the script at <path> with the opened file, so that TM
would make event callbacks, e.g.
<path> saved <file>
<path> closed <file>
<path> reopen <file>
given that you've already got the events-based version of the
protocol implemented, it sounds like this should be pretty
straightforward, and it sure would make my life easier...
(a more general request: please don't make useful TM functionality
only available through applescript. there are a lot of scripting
languages for OS X, and for all but one of them applescript events
are a PITA. anything that can be done by sending applescript events
should also be accessible via mate! thanks.)
This was announced a couple of weeks ago on the Rails mailing list,
but I thought it might be interesting to others in the textmate area
whether for Rails development or for learning purposes.
The textmate_backtracer plugin (download here) for Ruby on Rails lets
you easily jump from your web browser to textmate when a backtrace is
given. Using the txmt:// protocol, the plugin intercepts the
backtrace and inserts the file name and line numbers in a way
textmate understands so that you can get to the source of the problem
(no pun intended) in a single click.
Information available on my blog:
http://inquirylabs.com/blog2005/?p=36
Direct download:
http://inquirylabs.com/downloads/textmate_backtracer.tgz
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
Hi everyone,
I use a Mac part-time, and switching between Mac and Windows key
bindings is driving me nuts. I found the article "Key bindings for
switchers" and happily followed along with the instructions. However,
having set up my ~/Library/KeyBindings/DeaultKeyBinding.dict file
exactly as in the article, the new bindings work fine in Mail and
TextEdit but not in TextMate. I have no idea why that would happen -
any ideas?
Here's the contents of my DefaultKeyBinding.dict (copied directly
from the article) for reference:
{
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
}
Thanks in advance,
--Brendan
On Jan 24, 2006, at 10:02 AM, Allen wrote:
> Ah okay -- so basically it's the conversion you want help with?
yes.
> I assume it's because you are not familiar with any programming
> language (which I must say, your bundle is pretty impressive if you
> are not -- even if you are, it still is impressive -- do you mind I
> link to the intro screencast in the RSS feed as an example of
> behavioral patterns in TM? I can keep a local cache of the bundle
> if you're concerned about bandwidth).
I'd be glad to host the screencast, if bandwidth becomes a problem,
I'll let you know. And yes, I know exactly zero about programming
languages. The first time I used a regexp was for this bundle.
> I would suggest using htmldoc [1] for the HTML -> PDF conversion.
I'll check it out.
> So what you want is to make a regular expression to match each
> construct in your format, which you already did in the language
> grammar, and then as the replacement string you specify how it
> should be transformed. Here you can use $& to refer to the entire
> match and $1-$n for captures (stuff captured with (…)).
Okay, based on what you posted here before, I added a few things that
were missing and synced these with the language def.
#!/usr/bin/perl -p
s/&/&/g; #ampersands
s/</</g; #reserved for HTML
s/>/&lgt;/g; #reserved for HTML - maybe this is unnecessary?
s/^EXT\..*$/<h2>$&<\/h2>/; #scene heading
s/^INT\..*$/<h2>$&<\/h2>/; #scene heading
s/^I\/E\..*$/<h2>$&<\/h2>/; #scene heading
s/^[A-Z].*\-\s[A-Z].*/<h2>$&<\/h2>/; #arbitrary scene heading ending
with a time
s/^[A-Z].*\-\s*$/<h2>$&<\/h2>/; #arbitrary scene heading NOT ending
with a time
s/^\w.*$/<p>$&<\/p>/; #paragraph
s/\/\/(.*)\/\//<!-- $1 -->/g; #comments
s/\*(.*)\*/<em>$1<\/em>/; #italics
s/^(\t{4})([^\t].*)$/<dl>$1<dt>$2<\/dt>/; #characters
s/^(\t{3})([^\t].*)$/$1<dd class="parenthetical"> $2 <\/dd>/;
#parenthetical
s/^(\t{2})([^\t].*)$/$1<dd>$2<\/dd><\/dl>/; #dialogue
s/^(\t{10})([^\t].*:)$/$1<h3>$2<\/h3>/; #transition (right)
s/^[A-Z].*:\s*/<h4>$&<\/h4>/; # transition (left)
The only one that's not working properly is the last one. It's
baffling to be because it's the same regexp as in the language.
> If you need further help, let me know (as I have no idea what your
> shell/programming skills are).
I have no programming skills other that those I've already
demonstrated. Zip
There are a few steps left in the process that need to be addressed.
Next the HTML marked-up text (as generated by the above script) needs
to be inserted into an actual HTML document with doctype
declarations, CSS etc. And somehow (again, I have no idea how) it
needs to be transfered to a PDF authoring environment (htmldoc or
whatever).
Lastly, thank all of you. It's great to give something to a community
and get so much back.