Hi,
I have a tiny question.
Would it be possible to implement a kind of a 'onChange'-trigger in
TM (à la Javascript).
The normal way to invoke a command is to use a key combination, fine.
But I would like to invoke a specific command/macro based on the
current scope by changing the content of document (inserting/deleting).
The application range would be multifarious.
For 'onLoad' and 'onSave' I rebound the apple+O/S in conjunction with
TM_SCOPE. This works perfectly.
Thanks,
Hans
I'm trying to create a bundle command that will compile a Flex (.mxml)
file using fcsh (the flex compiler shell
http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell) unlike the
mxmlc compiler fcsh keeps things in memory so it's much much faster.
Long story short to use the fcsh compiler you would open up the Terminal
and run
$ fcsh
which launches the compiler, then you compile the mxml file as you
normally would
(fcsh) mxmlc /pathto/my.mxml
that mxml file gets assigned an ID (say '1'), from then on you use the
command
(fcsh) compile 1
I can get fcsh to run from a bundle command, but how I can I have it
wait to launch then run 'mxmlc /pathto/my.mxml' the first time but then
'compile 1' thereafter? (All within the original Terminal window). If
all three steps together are impossible, could I have it just run
'compile 1' in a Terminal window in which I've manually run steps 1 and 2?
thanks!
Hi,
In the begin pattern for meta.preprocessor.macro.c (see
http://macromates.com/svn/Bundles/trunk/Bundles/C.tmbundle/Syntaxes/C.plist)
I count the following groups:
1: (define)
2: ((?<id>[a-zA-Z_][a-zA-Z0-9_]*))
3: (?<id>[a-zA-Z_][a-zA-Z0-9_]*)
4: (\()
5: ( \s* \g<id> \s* (, \s* \g<id> \s*)* (?:\.\.\.)? )
6: (, \s* \g<id> \s*)
7: (\))
This doesn't seem to match up with the order in beginCaptures, where 6
is given the scope punctuation.definition.parameters.c. Shouldn't it
be 7 that is given that scope instead?
Regards,
Hector
File Drawer is one of my favorites marvelous of TM. I have, for
example, a folder hierarchy full of perl samples (for teaching). I
get really pleasured when so easily I can rename them (01-hello.pl,
02-read.pl, etc) to reorder following a difficulty criterion. But, I
found an annoying bug (or perhaps three, but it depends on the way
you define "bug":)
1) If you press enter to finalize the name edition (as you usually
do in Finder items renaming to finalize the edition), the <enter>
char not only doesn't finalize totally the edition but goes to the
edition window changing it.
2) If you are changing the name of a file and in the middle of the
process you switch to the Finder, for example, when return to TM, it
doesn't recognize the changed file (and is red highlighted) as in TM
the change of the name is not "completely" done, but in the Finder
system, yes.
3) It would be great if simply changing the files between the file
names with the tab key the edit window could follow it. It would
help a lot knowing what where you renaming. I am not sure about if
the currently is the desired behavior, but then I don't understand
the reason.
Juan F.
The macro described here has a few oddities.
http://comox.textdrive.com/pipermail/textmate/2005-October/006444.html
<quote>
1) move to beginning of line (ctrl A)
2) regexp search for: (?=\S|$)
</quote>
Lets say '#' indicates where the cursor is.
When I press Home on the following line..
@implementation App#Controller
Then the cursor is placed between '@' and 'i'.
When I press Home on the following line..
x -(IBAction)te#st:(id)sender {
Then the cursor is placed just before '-'.
Pressing home on an empty line then the cursor is
placed on the following line.
Is there a better smart-home macro?
preferable a smart-home macro that can toggle
between line-begin and text-begin.
--
Simon Strandgaard
http://opcoders.com/
Regardless of whether I've changed any code or not, the XCode build
goes in a few seconds sometimes and other times takes a minute or
two... any idea what might be holding up the script? Thanks,
Ben
Hi,
I've been showing off TextMate's LaTeX power to lots of friend in
academia, but I've hit a hitch. While reference and citation
completion work fine in a single source file, it fails in a multi-file
project. I have a master file listed in the project options, and the
project compiles fine with all the necessary citations and references
complete, but I can't get auto completion using alt-escape to work, I
just get "Could not find file" pasted into my braces. This is the case
whether I include a search string or not.
Any ideas what the deal is? Unfortunately I can't be sure that it was
working before as this is my first multi-file project.
Thanks.
Suhaib.
While trying to do a svn commit from within TextMate, I get this error:
===
Couldn't find /usr/local/bin
We need Ruby to proceed.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/usr/local/bin/
/usr/local/sbin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/pgsql80/bin
/usr/local/pgsql81/bin
/usr/local/mysql/bin
/sw/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
===
A command-line svn commit within the same checkout works perfectly -- so
I don't think that this is a svn problem.
Ruby is definitely there; the Rails app I'm developing works fine:
$ which ruby
-> /usr/local/bin//ruby
The error is particularly weird, as it clearly is looking at
"/usr/local/bin/" when trying to find "/usr/local/bin". What can this mean?
I'm using TM build 1372 (latest), MacOS 10.4.8.
I'm guessing that this is a configuration problem, but I can't figure
out what I've got set wrong.
Many thanks in advance for any pointers!
View Revision in the subversion bundle is not working for me. The
dialogue window appears briefly and then disappears. Checking the
console, there is the following error message:
error 63 (File name too long) opening sem /tm_dialog async/
markkalderon/1.
The thing is, my file names aren't particularly long. The command
chokes no matter how small the file name. Any ideas how to debug this?
Thanks, Mark