Great work on the bundle so far... though I'm currently having
trouble running the executable. When choosing Build & Run or just
Run, I get the following error:
/Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/
bin/run_xcode_target.rb:175:in `run': undefined local variable or
method `file' for # (NameError) from /Library/Application Support/
TextMate/Bundles/Xcode.tmbundle/Support/bin/run_xcode_target.rb:
193:in `run' from /Library/Application Support/TextMate/Bundles/
Xcode.tmbundle/Support/bin/parse_build.rb:202 from /Library/
Application Support/TextMate/Bundles/Xcode.tmbundle/Support/bin/
format_build.rb:559
I have the following problem, returning to a latex project after 2-3
weeks:
1. Even though I have set the master file to \includeonly{chap7}
when I compile within Textmate it ignores the command and constructs
the whole document.
When I manually do 'latex, bibtex, latex,latex' there is no problem.
2. I set TM_LATEX_ERRLVL to 0 but the ouput screen always disappears.
I tried the other values (1 and 2) with exactly the same behaviour.
How can I track down the problem?
Thanks,
Christopher
recently i was giving RSpec[1] and Behaviour-Driven Development
(hereforth BDD)[2] a look and found myself repeatedly writing the same
code constructs. i quickly slapped together two snippets for the ruby
bundle that seem to help out. the snippets could be made more spiffy
perhaps by turning them into macros and make them act similar to the
rails migration macros - but they still might be of some use in their
initial form.
worth noting, if you install RSpec 0.7.* and follow along with the BDD
tutorial[3], make sure change all of their:
object.should_be_equal
to:
object.should_be ==
or else you will be checking for object equality rather than value
equality (as mentioned in their upgrade notice[4]). i sure wish they
would have updated their tutorial...
cheers,
jean-pierre
[1] RSpec <http://rspec.rubyforge.org/>
[2] BDD <http://behaviour-driven.org/>
[3] RSpec tutorial <http://rspec.rubyforge.org/tutorials/>
[4] RSpec update notice <http://rspec.rubyforge.org/upgrade.html>
Hi,
At some point in the last month something major changed with the
JavaScript bundle. In particular, so many symbols are now added to the
symbol list that it is basically unusable. I can't say exactly when
this change occurred, but I would assume that others have noticed as well.
As an example, have a look at the following lines of (contrived) code:
var i = document.createElement('input');
i.type = 'checkbox';
i.name = 'foo';
i.value = 'bar';
i.checked = false;
I would not expect this to add any symbols to the symbol list. But in
fact, this block of code adds the following four symbols:
type
name
value
checked
Has anyone else had this problem? Does anyone know how I can fix this?
Thanks,
Taylor
I am having a number of GTDAlt bundle problems, but I'll start with just one
of them.
When I run the Action--->Archive completed script, I get this error:
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/lib/GTD.rb:41:in `parse':
Parse error on line: /Volumes/USBGOODMAN/GTD/gtd.txt (RuntimeError)
. This is not a line I recognize. from /Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/lib/GTD.rb:223:in
`initialize'
from /tmp/temp_textmate.uTEk7h:5:in `new'
from /tmp/temp_textmate.uTEk7h:5
I am not a programmer so I can't understand what exactly it can't parse.
The text of the file is:
project lawrence
@call go to store due:[2006-11-17]
#completed:[2006-11-17] @home eat pie [1] due:[2006-11-17]
end
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi!
Just tried to start to learn creating presentations with the beamer-
class and moved the templates to ~/Library/Application Support/Latex/
Templates
I switch to Latex Beamer or Latex in TextMate, type temp⇥, choose
one of the templates and with all templates, except for one nothing
happens except that the "temp" is deleted.
Any ideas what that could cause?
Niels
Hello
I created a project by dragging a folder with files .tex. I would
like to filter the files and to see only the .tex files and
not .log .pdf etc. sometimes I want to also see the .sty and .cls for
the development. I do not know the regular expressions to do this.
How to show only the files .tex, .cls, .sty, and .cfg
Thanks
Hi!
I have two questions regarding language grammars
1) Is there a way to have two language grammars working on one language?
As an example: There's the language grammar Latex in the Latex-Bundle
I have an additional bundle for own snippets and commands. Sometimes
I'm coming along a need for having something added to the
Latex-language grammar and I would like to Hotfix it w/out breaking it
with the next update (or as I just noticed I couldn't even change the
grammar). For this I would like to have in my own bundle a
Latex-language grammar which includes only the hotfixes and works
together with the rest of the language grammar of the Latex-Bundle. Is
this possible?
2)What's the best way to edit stuff in the bundle editor? Right now
I'm using for longer stuff always "Edit in Textmate" - is there
anything else for getting the comfort of Textmate while editing
snippets, commands and so on?
Niels
I have just downloaded TextMate for a try before buy and because I
write a lot of AppleScripts, wanted to open and compile my text in my
Script Editor of choice: Script Debugger 4 (set as my default). TM
defaults to Apple's Script Editor. How do I change that?
Adam Bell
I downloaded Marc Liyanage's "Open Terminal Here"[1] droplet and
modified it to open TextMate instead. Hence, "Open TextMate Here".
I've attached the droplet for anyone who's interested. I keep it in
~Library/Application Support/Finder (renamed to "Mate") and then
stuck it in my Finder Toolbar:
j.
[1] http://www.entropy.ch/software/applescript/
Ok, here's an idea.
A back/forward history thing for textmate.
Every time you change something in textmate, it logs where your
cursor is.
Then you can use a back and forward command to navigate between those
places, even between files and projects.
Would anyone but me find that useful?
I have a few idea on how to implement this.
Currently, the only thing that can automatically watch your changes
is the web preview window.
but you can use a pass-thru script in that window to do anything you
want, triggered every time you change something in your document.
the bad thing about that is that it would take over your webpreview
panel, and you'd have to open a webpreview panel for every document
that you want to catch the history for.
The other option is to use a command that you manually trigger. This
is lame because if you forgot to mark something then you'd lost that
step.
Another possible option.
An HTML command window that stays open and continually triggers a
shell script that logs your history.
I don't think this can work right now (i haven't checked) because i
don't think the TextMate.system javascript command grabs new
variables every time it's triggered without reopening the document.
But maybe we could convince Allan to implement something like
TextMate.update_variables or something.
Well, anyway. just thinking out loud.
thomas Aylott — design42 — subtleGradient — CrazyEgg
Hi,
I have some text. I know I can use TextMate to do first Soft Wrap (and I set
the colums to 80). Then, I select the whole text and do Reformat Paragraph
and Justify.
But after this, I don't want the justification to occur at the last line of
a paragraph. Therefore, I manually select the last line of every paragraph
and do Reformat Paragraph on those. Is there a way to automate this last
process, that is do Reformat Paragraph on all last lines of all paragraphs?
Also: How would I be able to do this without TextMate, i.e. in the command
line? I'm interested in that because I would like to create a PHP script
that does exactly this.
Cheers,
Ulai
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
I've got a project here with 16,500 files in it (75,000 if you count
the subversion metadata). It's a Joomla 1.5 website with a bunch of
content. I have three copies of the site in the project directory
because of the way I'm merging changes from the latest Joomla SVN
into my own source tree.
Needless to say switching to and from TextMate causes a considerable
delay - between 5 and 10 seconds on my G4 PowerBook. I like to flip
back and forth between a web browser, terminal and TM pretty
frequently - at times as much as maybe a few times a minute - so I'm
spending a fair proportion of my time waiting for TM at the moment.
Does anyone have any tips for speeding up TM's project scanning?
Obviously I could rearrange my project to move some of the less
frequently used files into another project - but I'd rather not do
that if it's avoidable.
It seems that TM only really needs to rescan the directories that are
open in the project drawer and any open files - a full scan could be
then be done lazily if at all. I get the impression it currently
walks the whole directory tree - is that correct? If it's not doing
that what's taking so long?
--
Andy Armstrong, hexten.net
Allen, great job (as usual), I'm sure I'll be using this quite often.
It would be great to add some of this to the language grammar so
context-sensitive commands could be developed, and it could be pretty-
ed up.
I would imagine that the existing support for the headers; to, cc,
bcc, reply to, and subject; would be adequate, although I am curious
if there are others that people would want to use (or could use). I
also wonder if it might be beneficial to quote the values, just to
make sure nothing goes haywire. But I can see that not really being
necessary.
Something really interesting would be a way to lookup email addresses
in the users' address book, though I have no idea if this is even
possible.
--oliver
P.S. Yes, I used the command to compose this message. And it was great.
> Does this have any advantage over the system-provided combination
> of control-command-D (which works with or without a selection).
One thing I don't like about the pop-up is that it appears for
whatever word your mouse is hovering over. This command can work with
a selection or caret placement. Which means for keyboard junkies,
they can skip one more trip to the mouse.
The only other advantage is that you might prefer using the app to
the pop-up.
Hi,
in the list I mentioned the problem that if you want to put images in
a help file written in markdown and using 'markdown_to_help.rb' for
formatting you will loose the reference for these images.
Allan mentioned to echo the base href in beforehand but then the
internal links generated by 'markdown_to_help.rb' don't work.
To solve this problem here my suggestion for an easy solution:
In your markdown file you write e.g.

It is a relative path, so you can see the image with 'Show Web
Preview' while writing your markdown
In your command to display the help you can write:
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Hypersearch Bundle Help" "Hypersearch"
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb"
"$TM_BUNDLE_SUPPORT/help.markdown" | perl -npe
's/(.*?<img.*?src=")(.*?)(".*)/$1file:\/\/$ENV{"TM_BUNDLE_SUPPORT"}\/$2$3/gi'
html_footer
What I'm done here is to pipe the output of 'markdown_to_help.rb' to a
perl command which puts at the beginning of each relative path in src
within a img tag the absolute path 'file:///$TM_BUNDLE_SUPPORT/'.
This perl command, of course, could be also implemented within
'markdown_to_help.rb' or as TM wide standalone command written in
Ruby, Perl, or whatever (which I would prefer for speed).
Cheers,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
I was blown away by the HTML demo on the Textmate site, the ability to
insert matching tags and intelligently tab through them seems like a great
way to create HTML. The fact that I can surround a selection and edit BOTH
start/end tags at the same time had my jaw dropping.
However, this 'magic' behavior seems to vanish once I leave the vicinity of
the tag. If I return (or edit an existing file, when I select a start tag,
it doesn't auto edit the closing tag.
I get how doing this automatically would create some problems. I'm just
looking for a way to someone 'refocus' Textmate on the tag in question,
matching the start end tags so when I reedit one, the other changes.
Through the hundreds of commands in Textmate, i assume there is someway to
do this. Any one have any ideas?
Thanks,
Scott
I updated to the most recent version (6143) and when I try to process
my inbox I get:
/Library/Application Support/TextMate/Bundles/GTDAlt.tmbundle/Support/
bin/process_inbox.rb:27: undefined method `get_contexts' for
GTD:Module (NoMethodError)
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
I'm working on a Backpack bundle and I've hit a stumbling block. I
can't get a date object into a plist. I need to read it into a nib
to set the date on a datepicker to the current date and time, but I
can't get any of the functions in the plist library to recognize it.
Any idea what I'm doing wrong? I'd post code, but I've tried so many
things it's hard to begin to describe it... I could just be slow.
Thanks,
Brett
Apologies if I'm being stupid, but since a recent auto-update, the
behaviour of holding option and ctrl with the cursor keys has altered;
I think this is related to an item I noticed in a changelog.
As it stands, Textmate is now using ctrl-left and ctrl-right for
per-word selection, as opposed to option-left/option-right (unlike
every other OSX app I have). Similarly, double-clicking is now
selecting a sentence, not a word. This is more than a mite annoying
for most work I do, with both text and code.
Is the behaviour I describe the default now, or has something odd
happened on my install? If the former, how do I change it... and if
the latter, how do I revert it?
Apologies if this topic has been covered - I couldn't find it anywhere
on the list.
t.
New WebPreview window (with Hacked Nibs)
Download the New TextMate WebPreview Window Nibs
I got rid of the drawer and moved all that stuff to the bottom.
Now it looks mildly less offensive.
thomas Aylott — design42 — subtleGradient — CrazyEgg
Dear all,
Here comes the next step:
There are quite a lot of new things in it so please also read the
HELP scratch.
In short terms:
Changes for 'Search':
- you can look across \n
- you can specify more the one regexp group
- If you select text (also across \n or \t) Hypersearch assumes that
you are looking for a string not via regexp. Thus it will change
RegExp option according to the content of your selection and escape
the string if needed automatically.
- you can display each RegExp group $1, $2, .. separately (useful
when using embedded parenthesis because hyperlinks don't work properly)
New function:
GetAllMatches
-based on a grouped regular expression or a single field delimiter it
outputs all matches table-like according to the chosen data format
-data formats are customizable via property lists by using TM or
Property List Editor (Edit GetAll Formats opens a project for that)
-you can create new formats based on 'new.plist' as template
-output behavior is selectable within the tm_dialog (insert, replace,
create new document,..)
-Search and GetAllMatches are based on the same plist, so you can use
Search to fine-tune your regexp and then open GetAllMatches with the
latest regexp
-five data formats are predefined:
TAB 1\t2\t3\n
HTML <tr><td>1</td><td>2</td><td>3</td></tr>
HTMLindented
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
HTMLTAB
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
CSV "1","2","3"\n
Now you can e.g.
-convert XML to TAB or visa versa;
-type a table with TAB and RETURN within your HTML document and
convert this selection to HTML syntax by specifying the field
delimiter TAB;
-get all function names or string variables out of your script file
-and and and ... see two examples in the HELP
!! Comments, bug reports, and suggestions are welcomed as always.
To install the bundle it is recommended to delete the old Hypersearch
bundle in beforehand.
Cheers,
Hans
PS I get many mails mentioning that Hypersearch is also quite useful
for learning regular expressions ;)
Hi all,
It appears that the 'Show TODO list' command doesn't honour a
project's Folder Pattern. For example, amongst other directories,
I've excluded the 'log' directory from my Rails project to speed up
'Find in Project', etc. As a test, I manually added a TODO to the
development log. If I 'Show TODO list', I see this:

Is it possible/easy for the TODO bundle to support this?
P.S. I'd investigate this further myself, however at this point I'm
relatively new to Ruby.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
hello all,
i am working with files that contain mixed ascii and binary data. if
i open the file in textMate and then resave it (without editing it's
contents), parts of the binary data are incorrectly interpreted as
line-breaks and the data becomes corrupted.
is there a way to create an ascii/binary hybrid file-type that
textMate understands so that i can edit the ascii without ruining the
binary data?
sorry if this is an obvious question, i'm still a textMate newb.
thanks in advance,
chad