Two quickies:
1. Is there a hot key to navigate to errors in the run window (after
running a unit test say)? I'm thinking of something like C-x` in
emacs. I know I can click on the line with the error, but then I have
to use the mouse :(
2. Is there a hot key to close all open tabs in a project, without
closing the project itself?
Thanks.
Steve
Hi there,
I've been digging the latex bundle for the past 6 months, but have a
serious productivity killer after updating the bundle from svn last
week:
Whenever I invoke "Insert Environment based on current word" (
Command-{ ), I got some temp file garbage. Searching the lists, I saw
that changing the bundle to "insert text" instead of snippet provides
more info.
Here is what gets spit out:
/tmp/temp_textmate.Z8ujaw:3:in `require': No such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui
(LoadError)
from /tmp/temp_textmate.Z8ujaw:3
So the require statement on line 3 of the bundle snippet fails.
Looking in SharedSupport/Support/lib, there is no ui.rb file, so that
is why it is failing.
I am using TextMate Version 1.5.5 (1372), and the svn bundle is up to
date as of revision 6993.
Any help appreciated - perhaps I should just role back to a differen
svn bundle version?
Jim
I use the Insert Close Tag command all the time when writing XML in
TextMate. Unfortunately, this command is inherited from the HTML
bundle, and that causes problems due to the differing semantics
between HTML and XML. Specifically, HTML defines certain self-closing
tags, such as <link>, but in XML these tags may have content and are
not self-closing. As a result, the Insert Close Tag can break in XML
mode. For example:
1. Create a new document
2. Switch to XML mode
3. Type <link>
4. Type some text
5. Call the Insert Close Tag command by typing Command + Option + .
Expected behavior: TextMate inserts the closing </link> tag
automatically
Actual behavior: TextMate beeps at you
Trevor
Hello
When I choose from the bundle Latex > Edit Configuration File
The in TextMate opening file is rather confusing. When I open this file
in Proprety List Editor ists clear, but in TextMate its rather cryptic ...
Is there something wring with my configuration, or is that normal. Also
I dont know, how to actually use this file.
Thanks
David
Hi!
Does GetBundle update all bundles to the state of the SVN-version or
only those bundles installed with GetBundle? I think about the LaTeX-
bundle for example.
Niels
--
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin
Inspired by the customization screencast [1], I decided to write a
reflow command for us Java users. It's designed for reflowing JavaDoc
comments. Based heavily on Allan's original code, it works well
except for one problem: The reflowed text is never indented, even
though I've set the output to "Insert as Snippet." Anyone know how to
fix this?
Here's the command:
#!/usr/bin/env ruby
# Grab comment text
txt = STDIN.read
# Remove beginning and ending slashes
txt = txt.gsub(%r{\A[ \t]*/|\s*\*/\s*\z}, '')
# Remove leading bullets
txt = txt.gsub(/^[ \t]*\*+[ \t]*/, '')
# Escape single quotes
txt = txt.gsub(/'/, "'\\\\''")
# Use fmt command to reflow text
txt = %x{ fmt <<< '#{txt}' }.chomp
# Put leading bullets back in
txt = txt.to_a.join(' * ')
# Escape special snippet characters
txt = txt.gsub(/[$`\\]/, '\\\\\0')
# Put cursor marker on last line
txt = txt.sub(/\n?\z/, '$0\0')
# Put beginning and ending slashes back in
txt = "/**" + txt + "\n */\n"
print txt
I've set the input to "Selected Text or Scope" and the scope to
"comment.block.documentation.java".
Thanks,
Trevor
[1] http://macromates.com/blog/archives/2006/04/12/customization-
screencast/
Hi List,
I'm using textmate now for round about two months (c,c+
+,latex,css,php,sql,html,css) and now i'm searching for a manual or
something to create my own templates.
Robert
:wq!
Hi all,
How do I stop textmate from re-indenting on ';'?
Textmate and I mostly agree on indenting, but we disagree about
how to indent some things. I'm happy with it getting this roughly
right when I hit return to get to a new line, BUT, if I change the
indenting and then type the rest of the line, having it screw up my
indenting when I reach the end of the line is REALLY annoying. And
no, just typing the ; first is not the answer I'm looking for.
I like the indenting being roughly right when I add a new line...
I just wish it wouldn't change it once I've explicitly set it (unless
I explicitly ask it two, and typing a ; to end a line is not asking).
Be well,
Will :-}
When working on R source files I am unable to enter dollar signs in
column editing mode. When I select a column and type $, only one is
entered in the first line and the column mode is left. This happens
regardless of width of selection.
On my system I can replicate this by creating a new R file consisting of
foo_bar
foo_bar
selecting the column with the underscore and typing $
which yields:
foo$bar
foobar
with the caret after the $.
Oddly this doesn't occur if I type another character before typing the
dollar sign.
TIA
Peter
>>> blah['name|']
>>> So, now what do I do???
>>>
>
> I think a nice new feature here would be to allow the null-action
> of "tab"
> to be to jump over any auto-created paired-chars. Then we could
> just tab out
> of the nest and carry on. It must be very seldom that users want a
> real tab
> character inside paired-characters.
I have disabled Auto Pairing in preferences and have defined several
commands like the next one for () pair. I feel it more intuitive and
coherent: you have a kind of snipped only when you are writing under
the assumption you are are inside pairs but you must ask for it apart
the usual ( character that is yet there. _For me_ is very stupid to
need to delete the ) char so frequently because you usually are re-
touching code, not writing it down like a literary work...
#!/usr/bin/env ruby
if ENV['TM_SELECTED_TEXT'] == nil
print '($1)$0'
else
$s = ENV['TM_SELECTED_TEXT'].to_s.gsub(/(?=[$`\\])/, '\\')
print "(#{$s})$0"
end
--- Command (Opt-Cmd-8, from old Mathematica), Use Selected text of
nothing, insert as a snipped
Then when you want a single (, use (.. and when you want a (|)|
use the command.