Greetings,
The latest Python bundle from SVN is apparently missing a
"magic_method_name" rule in its syntax file which causes TextMate to
flood console.log with error messages at each keystroke.
--
Luc Heinrich - luc(a)honk-honk.com - http://www.honk-honk.com
Hi TextMate'rs,
I often mistakingly type CJK letters in TextMate documents by totally
forgetting checking what input method I'm in.
If this happens, I don't find any solution to go back to normal.
Pressing Command-Z doesn't seem to help there. The only thing I can
do is close the window without saving, which, invariably, loses what
I've been working so far.
Is there any solution to quickly revert to where I was?
Also, is there any way to force TextMate to use a specific input
method, let's say, US mode?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
AIM: samuraicoder(a)mac.com
Hi,
For better or worse, I create a lot of JavaScript dynamically via PHP
in my current project. Would it be possible to get TextMate to treat
anything inside <? ?> (or <?php ?>) that is inside <script> tags as
PHP code instead of JavaScript?
- Luke.
Hey there,
I noticed there's been some activity updating the Python bundle and
language defs (thanks!). The new language grammar is flagging
something as invalid, but I'm pretty sure what I'm doing is kosher.
Its catching my return statement that returns a tuple that I'm
defining (and surrounding) by parenthesis at the time of return.
A trivial example:
def something():
one = 1
two = 2
return (one,two)
It looks like there are three scopes that are being assigned here (on
the return statement, that is), which I don't think should matching
here:
invalid.illegal.name.python
entity.name.function.python
meta.function-call.python
I just wanted to bring this to your/someone's attention. Thanks for
taking the time to make the Python bundle better ... if I recall
correctly, most everything used to be in just a source.python scope,
so the new work is much appreciated.
Thanks,
-steve
The 'Commit' command in the Subversion bundle seems to be broken
since Since TM Rev 1305 (+ latest svn bundle from trunk). I get the
following error on commits:
subversion/libsvn_ra/ra_loader.c:283: (apr_err=170000)
svn: Unrecognized URL scheme for ''
According to the Subversion FAQ [1] this indicates that the dynamic
linker/loader can't find the plugins to load. However, doing a commit
on the command line works just fine for me, so it seems to be an
issue with the Subversion bundle only. Is anybody else having this
problem? Thanks.
Sebastian
[1] http://subversion.tigris.org/faq.html#unrecognized-url-error
I've been trying to come up with a solution to creating shell scripts
within Textmate and creating a widget on the Dashboard layer to call
the script with references to any files or URLs passed to it, and I
have eventually come up with a Textmate widget & bundle to do all this.
I've created a screencast (sorry - no audio) to show the various
features of the bundle and the widget, and it can be found at:
http://homepage.mac.com/andy.herbert/Textmate-widget.mov
Features shown in the screencast include:
The actual widget is included inside the bundle and is installed in ~/
Library/Widgets/ the first time you call the bundle command to create
a new widget using the currently opened document.
To call a script using the widget click on the Textmate icon, to pass
files to the script as $1, $2.. etc drag files from Finder on to the
Textmate icon, you can also drag a URL on to it if you have a web-
browser open, this too is passed as $1.
If when the script is called there is any output a green icon will
appear on the widget, and when this is clicked you will be able to
view the output log, same goes with any errors the script throws up,
except this time the icon is red.
Flipping the widget over will allow you to edit the widget's label or
modify the script the widget uses. All scripts used by the widget are
held in ~/Library/Application Support/Textmate/Widget Scripts/ and
are deleted when you remove the widget.
Both the output and error logs are stored in ~/Library/Logs/, each
widget has a separate file, and is deleted and re-created each time
each script is called.
The widget bundle can be found at:
http://homepage.mac.com/andy.herbert/Widget.tmbundle.zip
I hope it might be useful to someone else on this list.
Hi,
It is very cool that enter now opens URLs in textmate.
It would be a nice addition if, as in Safari and mail.app, adding a modifier
opened the URL without bringing the browser to the front-most.
So, I suggest "Cmd-ENTER" = open in browser in background
tim
Hello, everyone.
As you may know I have written a basic code completion system and
documentation-lookup command for TextMate(^M and^H). I have also finished
a definition look up system for Cocoa(suggestion for key-trigger
appreciated).
The solution I have used is to look up every method in a gzipped
list and
accessing it from ruby via the shell command zgrep. Since I want the
system to work with more than just cocoa I thought I tell anyone
interrested so that they can give me their opinions. Currently the list
is formatted in the following way:
[methodName][tab][framework][tab][behavior][tab][Class][tab][methodtype][tab][returnType]([tab][arg])[newline]
ofcourse if there are more args, then the parenthesis is repeated, and if
there is no arg the whole parenthesis is omitted. hopefully the following
ruby dict explains the various abbreviations.
{:AppKit => "AK",
:CoreData => "CD",
:CoreImage => "CI",
:Foundation => "F",
:instancemethods=> "im",
:classmethods => "cm",
:classes=> "Cl",
:protocols => "Pr",
:delegatemethods => "dm",
:notifications => "no"}
behaviours are either classes or protocols, methodtypes are either
instancemethods delegatemethods notifications or classmethods.
displayMode AK Cl NSToolbar im
NSToolbarDisplayMode
propertyForKey: F Cl NSStream im
id NSString *
textUnfilteredFileTypes F Cl NSAttributedString
cm NSArray *
textUnfilteredPasteboardTypes F Cl NSAttributedString
cm NSArray *
textView:clickedOnLink:atIndex: AK Cl NSTextView
dm BOOL NSTextView
* id unsigned
when looking up methods for completion and documentation this is all the
information I need for my uses. The problem comes when doing declaration
lookup, since not all classes are declared in a file with the same name
and there are categories and so on. Currently I am using an xml dump from
AppKido converted into a ruby dict using crazy gsub commands.
Unfortunately the appkido parser is a little wacky, so I thought that I
would ask the list for help.
What is needed is a file or a script that generates the file
according to
the spec above, but when a method is declared in a file that does not
correspond to the class name, the filename should be written after the
Class using a separator that is not a tab (; perhaps).
If anyone see a problem coming up with this approach please say
so, if
you have any other critisism feel free to add it. Hopefully this layout
contains enough parameters should someone want to write completion and
lookup commands for pyobjc or rubycocoa. Perhaps it would be smart to
come up with a name for an index file, containing your own indexed
methods, that will be automatically picked up by the various completion
and look-up tmCommands.
Joachim Mårtensson
It was bothering me that the cleanup command in GTD2 wasn't
preserving whitespace before projects. I.e. this...
* Foo
- bar
* Baz
- bob
- fred
Would be turned into:
* Foo
- bar
* Baz
- bob
- fred
This "fixes" it in a way that'll likely be laughed at. Point and
laugh away, it works for me... :-)
b.bum
Index: GTD2.tmbundle/Commands/Cleanup.tmCommand
===================================================================
--- GTD2.tmbundle/Commands/Cleanup.tmCommand (revision 5658)
+++ GTD2.tmbundle/Commands/Cleanup.tmCommand (working copy)
@@ -17,7 +17,11 @@
if (myTest.pre_match != "+" and myTest.pre_match.length > 0)
puts line
else
- myDone = myDone + line
+ if (line != "\n")
+ myDone = myDone + line
+ else
+ puts "\n"
+ end
end
end
puts myDone</string>