[TxMt] Re: textmate Digest, Vol 43, Issue 37

Brandon M Fryslie bmf at email.arizona.edu
Fri Dec 16 02:54:35 UTC 2011


>
> If by event you refer to the ?event specifier? then this is a legacy thing
> that I wanted to have removed before the public alpha.


Gotcha, now it all makes sense.

Most appropriate would be ?callback.document.binary-import? ? commands with
> that (semantic) class are called prior to TM doing anything with the file
> attempted opened.


So the "callback.document.binary-import" is called on any file regardless
if it is marked as 'binary' (i.e. vs plain text) by TextMate?  I was under
the impression tm_proj files are plain-text plist files.

Furthermore you want to use attr.rev-path.tmproj as the scope selector so
> that your command is only invoked for *.tmproj files.


Could I ask what "rev-path" stands for?  Just curious.

This however being an import filter, TM expects your command to provide the
> file?s content on stdout, so this isn?t designed to do exactly what you
> want.
> I don?t know if you can take it all the way with the info above, but I
> figured this info would be useful regardless of this specific situation and
> it might not require many tweaks to support your desired behavior (e.g. TM
> could be made to act on an ?exit_discard? from your command, and trust your
> command did the proper thing).


Oh I sure hope I can figure it out from that!  :)  Thank you so much, I
have quite a few plans for bundles so pretty much any info at all regarding
the new features is helpful at this point.  A list of semantic classes that
are internally recognized by TM would make my day but if it's not easily at
hand or it will be changing a lot don't worry about it.

I'll post to the list when I have something working to my satisfaction.  If
I have something worth committing how do you recommend I go about that?

Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20111215/81e1665e/attachment.html>


More information about the textmate mailing list