Hello. I'm relatively new to TextMate and new to this list. So, sorry if
what I'm asking is dumb and has been covered before.
I've checked the manaul macromates site, but couldn't find the answer.
Hopefully this is something easy to remedy.
I recently discovered the commands feature, and was playing with the
ActionScript commands that ship with TextMate. I got Find in ActionScript
Dictionary set up just fine; that was as easy and determing the path to the
help_toc.xml and plugging it in to my shell variables (I have a vague
understanding of what I did, but I'm no shell variable expert).
But I can't get Show AS Function Signtare to work properly. When I try it,
my cursor is in between the parentheses of the function, and I hit the key
command, and tool tip appears, but the contents of the tool tip is an HTML
file. It looks like it's the HTML file that would be returned from the Find
in ActionScript Dictionary command, just displayed in a tool tip. In fact,
if i change output to Show as HTML, I get a search results page just like
Find in ActionScript Dictionary.
the command is:
"$TM_BUNDLE_SUPPORT/Tools/asd.pl"
It saves nothing, has no input, and outputs as show as tool tip. Scope is
source.actionscript
Thanks,
Dru
I was wondering how to handle snippets for various XML types. For
example, I'm developing some snippets for the Quotation Exchange
Language [1]. Although QEL is just XML with a specific schema, its
snippets are totally unique and would be useless in any other XML
file. That makes me inclined to give the QEL snippets their own scope
(to avoid potential naming conflicts between tag triggers). But how
can this be done? It seems like I'd have to create a new language
type for QEL, but I'd simply be duplicating the XML bundle -- not
just for QEL but for all the XML file types I'm writing snippets for.
The thought of all that redundancy bothers me; perhaps there's some
way of "subclassing" the XML language type? Or is there an entirely
different way to handle this kind of thing?
Trevor
[1] http://www.amk.ca/qel/
Hi,
I like using key commands for scrolling / reading. That is, not just
moving one line up/down, more like continuous movement vertically.
Navigation -> Scroll -> Line Up/Down
Question,
Using this command (while holding down / key repeat), firing a
shortcut makes the top-menu blink. So, when using it for continuos
scrolling it feels a bit sluggish due to this.
Also, when I've scrolled say 1 1/2 page, how do I center the cursor
on the visible area!?
Why,
I'm used to this from bbedit where you have ctrl alt and command +
arrows for scrolling in different speeds. Say ctrl-down = one line,
ctrl-alt-down = three lines, etc. Then when you see that line you
wanna edit, I use command-shift-J for moving the cursor -> "Go to
center line".
In bb I don't think the shortcuts for this is available in the main
menu, which makes them run without the menu-blink for each key repeat.
best
/David
It looks like TextMate only recognizes Perl-style backreferences when
doing a regular expression search/replace. (e.g. $1, $2, etc.) I'm
used to the style typically found in text editors: \1, \2, etc. Is
there any way TextMate can be made to recognize the latter style?
Trevor
feature request:
redo last action
redoes the last snippet, macro or command that you just did.
I have a lot of commands and snippets and things that i only use once
every so often. So I don't give them a tab completion or shortcut.
Many of them I would like to use multiple times in a row.
Currently, i could record a temporary macro, run the command and then
rerun the temp macro.
But I never remember to do that.
It would be way handier to have this extra function, too.
Thankyou, and goodnight everybody!
I'm trying to disable auto-indentation for the lines below starting
with 'case'. This is how I'd like the code to appear:
switch ($where) {
case 'start' :
# code...
break;
default :
case 'middle' :
# code...
break;
case 'end' :
# code...
break;
}
However, by default, the php bundle wants to format it like this:
switch ($where) {
case 'start' :
# code...
break;
default :
case 'middle' :
# code...
break;
case 'end' :
# code...
break;
}
I've added this preference item to the php bundle for source.php, but
it's not working:
/* preferences */
{
unIndentedLinePattern = '^\s*case\s+.*$';
}
Am I doing this right?
Thanks,
Q
Hey folks,
To the maintainer of the Java language bundle, I just pulled the
latest from svn. I didn't realize if the Java.tmbundle was update,
but there are (IMHO) some bugs in the language grammar that I'm
running accross that I don't think I've seen before but it's possible
I just wasn't looking:
FIRST:
When the cursor is immediately outside of a block comment, the scope
still shows "comment.documentation.java" or "comment.block.java" when
I don't think it should be (imagine the ^ character to be the cursor):
Example:
/* some comment here */^
-- or --
/**
* My method does this
*/^
the scope on the outside of the closed comment is being recognized as
comment.block.java and comment.documentation.java respectively when
really I'm out of the comment blocks.
SECOND:
All the code after an abstract method is scoped to
meta.definition.method.java, like for Example:
public abstract void doSomething();
// all code in the file below this is scoped to the
meta.definition.method.java
if I add a {} at the end of the abstract method signature the scope
gets fixed -- but, y'know ... then the compiler complains :-)
Thanks,
-steve
I'm trying out TextMate for the first time and I love what I see, but
I'm unable to run commands of any kind. They all fail with:
interpreter failed: Malformed Mach-o file
I've double checked my download and all the relevant parts of my
system. It's hard to imagine that this is very common, but has anyone
seen it before?
Thanks,
Patrick
A month or two ago I started making a Coldfusion bundle and haven't
look at it since... and now I'm back doing some CF work again the
highlighting is starting to piss me off, so I thought I'd ask you
guys: how do I do a bundle pattern that matches nested comments?
In CFML you can have
<!---
<cfif something eq true>
<!--- A nested comment --->
</cfif>
--->
and the whole thing should be syntax coloured as a comment.
The basic pattern at the moment is:
{
name = 'comment.block.html';
begin = '<!---';
end = '--->';
}
any ideas how to get nesting working?
-- Tim
Dear Allan,
I compiled the InputManager from svn and installed it similar to what
I found here on this list's archive (i.e. put both the .bundle and
Info into ~/Library/InputManagers/Edit in TextMate --- this works!
Great, now I can write my emails in TextMate (which is sooooo much
better than Mail.app) using Markdown etc.
Also the problem with the PropertyList bundle was odd. I deleted the
bundle from Disk and re-imported it from the svsn and now it is
available (again?).
And as a side note and feature request: Would it not be really great
if TextMate would take over in ALL Cocoa Apps? ;) Not just as an
InputManager, but as default editing view ;) Ahh, just dreaming again.
Daniel