Stephen Oravec asked...
> Hello I'm a new user to textMate,I made a HTML Template, but don't know how
> to add it to TM, the help file doesn't really give much info on where to
> save the template.
Open the bundle editor (command-control-option-b) with at least one
file open in TextMate.
Select the bundle you'd like the template to be associated with (and
make a new one if appropriate). Then choose "new template" from the
"+" at the bottom left of the window, and fill in the template
appropriately. The file is saved to a "Templates" directory inside
that particular bundle. (Choose "show package contents" on one of
TextMate's existing bundles that has at least one template available
from the File menu and you'll see how it's all structured. They're
saved inside /Applications/TextMate/Contents/SharedSupport/Bundles/
for the bundles that come with TextMate, and in your
Library/Application Support/TextMate directory for any that you add.)
Cheers,
Paul
Hello I'm a new user to textMate,I made a HTML Template, but don't know how
to add it to TM, the help file doesn't really give much info on where to
save the template.
I've patched the ackmate plugin for textmate to fix the problem described in this issue:
Searching inside symlinked folders opens a new window
http://github.com/protocool/AckMate/issues#issue/5
Trevor Squires had been opening a a file like this from the plugin:
[[[NSApplication sharedApplication] delegate] openFiles:[NSArray arrayWithObject:absolute]];
Evidently after passing through Cocoa the original path to the file, which includes a dir symlink, is converted to the
equivalent path without the symlink before textmate proper gets the event. Texmate then opens the file in a new window because
it isn't in the project path anymore.
Here's the change I made:
http://github.com/stepheneb/AckMate/commit/1bc7e4ca698b51b2a0d523ecea277bfb…
Which was to call Texmate going through the shell with an NSTask.
I'm wondering if there is a better way -- Trevor thought my hack was a bit ugly ;-)
Hi there -
just in case anyone else runs into the following issues when using TextMate's Perl bundle and trying to run scripts:
1) TextMate has its own PATH variable (in the settings)... It's obvious but, make sure that the perl you are using is on that path (TM doesn't pick up the path in your env).
2) there is a problem with tainting in the file - to get round this (if you are using the -T in your shebang line for example)
change line 17 of exception_handler.pm in bundles/Perl.tmbundle/Support/exception_handler.pm to:
$ENV{"TM_ERROR_FD"} =~ /([0-9]+)/; my $error_fd =$1;
This will ensure that $error_fd is untainted.
3) You may find the following error, if a module you are using uses Carp, e.g. you are using use strict (or just use strict 'vars') and you have an error in the file:
Attempt to reload Carp/Heavy.pm aborted.
Compilation failed in require at /Applications/TextMate.app/Contents/SharedSupport/Bundles/Perl.tmbundle/Support/exception_handler.pm line 30.
If you do, make sure you add a use Carp::Heavy; in the script you are running. I think this is due to clearing up a circular import that would happen otherwise (because of some cleverness in exception_handler.pm)
If anyone can clarify any of this, great.
all the best
Tim
Tim Diggins
http://red56.co.ukhttp://tim.teamportfolios.com/
I am sure this has been discussed before but I cannot track it down.
I get the following error when using the TODO bundle with a latex file:
----
Scanning directory: ~/Dropbox/Aston/Research/Papers/Ontology_Evaluation
(erb):4: undefined method `+' for nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:99 from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/erb.rb:716:in `grep' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `each' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `grep' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in `open' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75:in `each' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75 from /Library/Application Support/TextMate/Support/lib/textmate.rb:201:in `call' from /Library/Application Support/TextMate/Support/lib/textmate.rb:201:in `each_text_file' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:71
----
How can this be fixed?
Thanks,
Christopher
Thanks,
I have tried to add "text.html -source.php" in the scope selector for the TAB snipped in HTML bundle, unfortunately the problem seems to be still there. What could be wrong?
I would like to remove that function from there only as I would like to disable other things when in phpDoc scope.
thanks
>> How is it possible to disable such behavior? I just want a tab space there.
>
> Open the bundle, scroll to the HTML bundle and find the snippet with the name "?". Either add " -source" to the scope or just remove the tab trigger.
--
Ciao
Fabio
I'm looking for a way to allow the user to login via a web page and then grab the session cookie set by the server. I want to use this to make further queries to the same server using curl. I discovered the MoinMoin bundle does something like this by reading the browser cookie file, but the cookie I need is a session cookie so it does not get written to the file.
More generally, is there any way to get a list of HTML output windows and query their properties, e.g. current URL, etc?
Thanks!
John DeSoi, Ph.D.
Hi All,
i'm getting errors when trying to use comands from the rails bundle. likei:
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17:
invalid multibyte char (US-ASCII)
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17:
invalid multibyte char (US-ASCII)
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17: syntax
error, unexpected $end, expecting ')'
...Mate.exit_show_tool_tip("The ‘create partial from selectio...
... ^
I am using latest edge, so
http://github.com/drnic/ruby-on-rails-tmbundle/issues/issue/14 isn't
it.
my ruby_path his /Users/Administrator/.rvm/bin/textmate_ruby
--
dc
David Clark
16 Harcourt St #2I
Boston, MA 02116
I am very curious about git. I understand roughly
how it works and it can be used, but since there
are ppl here using it massively, would you kindly
write a short 'git/git bundle for dummies' ? What I'd like
is an example of how concretely you use it every day
and what it gives you. My needs are basic, I have
many joint projects (=joint papers) with several people
scattered around the world, and I would like to
understand if it is worth learning to use it or not
to manage my collaborations.
Piero
Hi,
like suggested by Allan I'll try to explain again the problem:
1. create a new file from template -> HTML -> XHTML - 1.0 STRICT;
2. save it like test.php and edit it in HTML mode;
3. before the head ends, type "style" and press tab;
4. go inside style tags, now it should be possible to use autocomplete for CSS;
5. start typing something like:
#test { font
now hit the Esc key while the cursor is near the "t". It does nothing here.
Now try to create a new empty file, save it as test.css: you are in CSS mode.
Like before type:
#test { font
and hit Esc near the "t": it will start to rotate autocomplete choices like:
font-family
font-size
font-size-adjust
etc.
This is what I would like to have inside <style> </style> in the HTML head.
Here is not working in such way: yes I can hit TAB and I will get similar choices but I like so much the Esc key that I would like to know if it is possible to have it work inside html page head style tags.
It is so annoying to have to type all the words like "border" when you can just type "bor" and hit Esc!
It works in CSS file not in php / html one.
Is there a fix?
Thanks!
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Risparmia fino al 90% con Groupon CityDeal.
* Gruppi D'Acquisto Sicuri e Risparmi Garantiti
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid813&d-8