Hello,
I ripped off RakeMate to make MavenMate. Same kind of deal, allows
you to run maven2 tasks from within TextMate. Should it be put in the
Bundles repo?
http://ldaley.com/downloads/Maven.zip
- LD.
Ciao Folks,
at first I would like to offer my thanks for the great work on the new LaTeX
bundle. It's a big step forward especially in the area of displaying the log
after compilation. I really missed that compared to TeXShop.
Tonight, while playing around with the new "%!TEX root" directives to define a
master file, I noticed that Auto-Completion for \cite{} etc. using ALT+ESC only
works recursively if the master file is still specified using the
TM_LATEX_MASTER variable either in a project or global. the %!TEX directive does
work for compilation but not for completion as it seems.
Is this a correct observation or rather a bug on my side. I am not sure, if it
would even be possible to enable recursive search using only the directives. If
that is the case, I guess it would be best to mention that in section 2.3 of the
bundle help as advantage of the TM_LATEX_MASTER variable.
Just my two cents ;-)
Best Wishes
Bastian
Hello, I when trying to commit using the latest version of the CVS bundle
and the latest version of TextMate as of August 14, 2007 I am getting the
following errors:
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99: undefined
method `keys' for []:Array (NoMethodError) from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99 from
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:97:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:97 from
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:25:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:25 from
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19
File(s) not modified; nothing to commit.
If anyone has experienced something similar or have any information that can
help me start using CVS, please let me know.
Regards,
--Matic Code
Hi,
would it be possible to change the definition
{ name = 'meta.escape-character.latex';
match = '\\$';
into
{ name = 'meta.escape-character.latex';
match = '\\$|(?<=\\)\n';
The problem is that a backslash followed by a newline
is not recognized by the first definition.
Piero
Looks like svn revert is broken in the last build. If I try to revert
a file there's an error that says require fails in line 3 of
revert_file.rb, which is:
require ENV['TM_SUPPORT_PATH'] + "/lib/ui"
-- fxn
Hi, only since early this morning, whenever I call for Bibdesk-
Citekey-Completion using "F5" TM freezes, shows the ball and I'm left
waiting without anything happening.
And I'm pretty sure I didn't change anything since last night, when
everything just worked fine.
Bibdesk-Completion works in other apps like before.
Any ideas?
Flo
Hi,
I'm developing a bundle for Stata/Mata, and I want to define a
grammar such that Ctrl-Alt-B can select an entire function. I would
appreciate any pointers.
Here's an example function:
real matrix y_null(real scalar rho, real scalar T) {
real matrix y
real colvector e
real scalar t
y = J(T, 2, 0)
// use the inverse CDF method to draw from N(0, 1)
e = invnormal(uniform(T, 1))
y[1, 2] = (1 - rho^2) * invnormal(uniform(1, 1))[1, 1]
for (t = 1; t < T; t++) {
y[t, 1] = rho :* y[t, 2] + e[t]
y[(t+1), 2] = y[t, 1]
}
y[T, 1] = rho :* y[T, 2] + e[T]
return(y)
}
And here are the relevant excerpts from the grammar:
patterns = (
{ name = 'meta.function.mata';
begin = '(?x)
(?=
^\s*
((transmorphic|numeric|real|complex|string|
pointer)\s+)? # eltype
((matrix|vector|colvector|rowvector|scalar)\s+)? #
orgtype
(\w+)\(.*\)\s
+ # function name
\{$
)';
end = '(?<=^\}$)';
beginCaptures = { 5 = { name = 'entity.name.function.mata'; }; };
patterns = ( { include = '#base'; } );
},
{ include = '#base'; },
);
repository = {
base = {
patterns = (
...
{ name = 'storage.type.eltype.mata';
match = '\b(transmorphic|numeric|real|complex|string|pointer)\b';
},
...
);
Now, in most regards, this works fine. The name of the
function--"y_null"--shows up in the symbol list, and the contained
scopes are identified correctly. Also if I cycle through Ctrl-Alt-B
when the cursor is not on "real" or at the beginning of the line, the
whole function is selected. However, if I hit Ctrl-Alt-B either at
the beginning of the first line or within "real", it fails to
recognize the meta.function.mata scope. That is, on the first
keypress, TextMate recognizes the storage.type.eltype.mata scope and
selects "real", but on the second, it skips right to the source.mata
scope and selects the whole program instead of just the function.
Here are the results from Ctrl-Shift-P:
With cursor at the beginning of "real"/beginning of line --
source.mata, meta.function.mata, storage.type.eltype.mata
With cursor within "real" -- source.mata, meta.function.mata,
storage.type.eltype.mata
With cursor anywhere else in the function body -- source.mata,
meta.function.mata, other scopes from the base repository if relevant
With "real" selected (by Ctrl-Alt-B or manually) -- source.mata
Any ideas on how to workaround this? It's annoying, because if you
navigate to a function via the symbol list, it puts the cursor at the
beginning of the line by default.
Thanks!
Michael
One thing I use snippets for is as a simple, convenient memory aid; for
example, I currently have (most) of the Ruby standard exception types as
snippets with the tab trigger "exception". So I type in "exception",
tab, and get to choose which of the exceptions I really want to use.
However, defining and maintaining (in case changes are wanted) such a
large number of small snippets is sorta annoying when going through the
Bundle Editor. Is there a way to have multiple snippets in one file,
including the various settings such as tab trigger, keyboard shortcut, etc.?
Thanks,
Ken
Done searching and looking through the help, and some Googling, and I
still can't find any info on how to put snippets/commands/etc. into
menus. I know this can be done (the Ruby plugin, for one, does it), but
I just can't figure out how. Probably very obvious too, sigh...
Thanks,
Ken