Hi,
just saw the tm_dialog screencast: http://macromates.com/screencast/
intro_to_tm_dialog.mov
just a quick note to say that I'm amazed at tm_dialog... Well,
tm_dialog isgreat :), but really it's more the power of the Interface
Builder, what you can do without coding that got me of my feet.
really amazing.
Best regards, (and now waiting eagerly for the next tm_dalog
screencasts :))
--
Pedro Melo
JID: xmpp:melo@simplicidade.org
Hi,
first of all tm_dialog is ... I don't find words for that. Thanks A
LOT!!!!!!
tm_dialog will revolutionize my work ;)
----
I just played with it to use it with Hypersearch.
I followed your instructions but I have a tiny problem:
I created a nib test1 with an TextField and two check boxes.
Everything is fine except there is no return for the TextField. Only
my checkboxes appears.
If I add a second TextField to the nib then the value of the FISRT
TextField is returned but unquoted.
What I did wrong? For checking this I attach two small nibs 'test1'
with one TextField and 'test2' with two TextFieldes.
Here's the terminal output:
l:~/Documents Bibiko$ tm_dialog ~/Documents/test1.nib
{sw1 = 1; sw2 = 1; }
l:~/Documents Bibiko$ tm_dialog ~/Documents/test2.nib
{searchString = aaa; sw1 = 1; sw2 = 1; }
I couldn't find my error.
I use TM Cutting-Edge build 1305 downloaded one hour ago.
Thanks in advance,
Hans
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>
Dear Allan:
On Oct 27, 2006, at 6:45 PM, Allan Odgaard wrote:
> On 28. Oct 2006, at 03:32, William Scott wrote:
>
>> It may be a system shortcoming but it breaks the default OS X
>> behavior.
>> Personally I always launch X11 apps from the command line like any
>> other
>> unix program, but OS X has been specifically designed to make these
>> binaries double-clickable or openable with the "open" command (as
>> well as
>> the defective open-x11 command).
>
> Which application would handle the double click of such unix binary?
The Finder. If you don't have textmate, you can navigate in the
Finder to /usr/X11R6/bin and double-click on a file, and it runs. I
don't use the system that way -- I'm basically a unix geek, but it is
the default system behavior.
>
> Can you open it with: open -a «the application which the system
> seems to have a hardcoded fallback for» «application»? If that is
> doable, you could do a wrapper for open, which added the -a
> argument for these binaries.
Apple has a program that does this it calls open-x11. I guess it is
useful if one doesn't have /usr/X11/bin in the $PATH, but apart from
that, it seems kind of silly (and has some odd limitations).
>
>> Is there not a way to simply exclude binary executable files from
>> those
>> textmate claims as its own?
>
> There is not, as said, this is a system shortcoming.
I wrote a simple-minded shell-script wrapper for "mate" that tests
files and excludes them if they are binary data files, mainly to
allow creating projects on the command-line that exclude files I
can't edit (and pass them off to other programs). FWIW: http://
xanana.ucsc.edu/Library/init/zsh/local-functions/darwin/edit
>
>> Other editors don't seem to do this.
>
> And other editors does not open README, INSTALL, Makefile, etc.
> when double-clicked. I got requests for that on a weekly basis
> before I added the plist entry.
Sorry, I thought it would be easy to exclude specific directories
like /usr/X11R6/bin and /sw/bin.
I'm not complaining, just curious (and largely ignorant of how these
things work).
All the best,
Bill
I installed DarwinPorts (now MacPorts) several weeks ago, and installed
TextMate today. When I click on a Unix app found in /opt/local/bin, such
as /opt/local/bin/kmail, instead of the app opening using Apple's X11,
which it was doing previously, it now opens in TextMate.
If I Get Info, I cannot change the file association back to X11 due to
permissions.
Is there a solution that I'm simply not seeing? So far, the only thing
that works is uninstalling TextMate, which I obviously don't want to do.
Thanks.
Scott
--
R. Scott Granneman
scott(a)granneman.com ~ www.granneman.com
Full list of publications @ http://www.granneman.com/publications
My new book: Linux Phrasebook @ http://www.granneman.com/books
Read the Download Squad Blog @ http://www.downloadsquad.com
"A man cannot be too careful in the choice of his enemies."
---Oscar Wilde
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I had a specific need for a snippet, that would have current word (with
fall back to selected text) to generate either a container tag or a
single tag, depending on whether the ending forward slash was removed in
the tab stop variable or not.
I use this for the TXP bundle to generate a plugin tag, since those tags
would not get matched by the insert open/close tag command, (ctrl shift
<) since it is impossible to know about all of them.
It uses the following snippet(with capture register 1 to decide weather
the closing container tag should be inserted or not :
tag="${TM_CURRENT_WORD:-TM_SELECTED_TEXT}"
tags="<txp:\${1:$tag}\${2: />}\$3\${2/ \/>|(.+)/(?1:<\/txp\:$tag> )/}"
echo "$tags"
The macro then selects the current word, triggers the command, which has
output set as "Insert as Snippet" and tabs over the second tab stop
variable.
Not knowing right now where to put it, I assigned it to :( ctrl shift >
) and named it simply: Tag/s
Here is how to use it:
write the tag name, trigger the macro, which will insert a single tag.
If that is intended, then pressing one more time tab will leave the
caret at the end of the single tag.
When the tag is no single tag, the you just type : >
and it will mirror itself inserting the corresponding closing
tag,leaving a tab stop variable in between.
This is perfect, since I can then just press return and it will do the
special HTML return behavior.
You can easily adapt this to your needs, for HTML or anything else.
(I forgot to encounter for attributes though)
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFQgGY8tSzPOYuZvQRApgJAKDRs0Z31MkhBxxLxrsfgvmm738T+wCgiwLz
AdkkOl7b6eB+vv2CozbK220=
=ZtwD
-----END PGP SIGNATURE-----
OK thanks. I'll wait a new release ;-)
Francois
----- Message d'origine ----
De : guerom00 <romain.guerout(a)stud.unibas.ch>
À : textmate(a)lists.macromates.com
Envoyé le : Samedi, 28 Octobre 2006, 0h47mn 36s
Objet : [TxMt] Re: Window splitting ?
Francois <francois_75015@...> writes:
> I am looking for a window splitting function in TextMate
> : does-it exist somewhere ?
It's not implemented yet.
This is on Allan's ToDo list :-)
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
>From the Terminal:
matt-neuburgs-imac-g5:~ mattneub$ ruby -e "Object.new.hello"
-e:1: undefined method `hello' for #<Object:0x3257bc> (NoMethodError)
Very good. Now let's try it in TextMate. Make a TextMate doc, set it to
Ruby, put Object.new.hello into it, and run it. The RubyMate window appears
and says:
NoMethodError: undefined method 'hello' for #
I'm guess that the loss of <Object:xxx> is because of an HTML problem. Hmmm,
I suppose I *could* try to fix this instead of just talking about it. :)
Anyway, a fix would be nice to have. Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Is there any way to make textmate save, without a dialog, the
frontmost document, from a command?
I tried `osascript -e 'tell application "TextMate" to save document
1'`, but I got a file dialog. Thanks for your assistance.
Jeremy
Good morning.
I think something similar has been brought up previously on the
mailing list, but I didn't see a resolution so I thought I'd check in.
I've got a script that I've got triggering on Cmd-S to create a
backup file each time I save. However, the problem is that if I have
an unsaved document and click Cmd-W and hit Enter to save, my script
does not execute because Cmd-S was never pressed.
What I would love is to be able to trigger on an event like the
"save" event in this example. Another subscriber to this list had a
few other events that he thought would be useful, too.
Any chance something like this is in the pipeline, Allan?
Thanks.
--
Michael Lehmkuhl <michael(a)electricpulp.com>
Partner, Electric Pulp
1.605.988.0177 : 1.888.722.PULP
electricpulp.com
Hi all,
I am looking for a window splitting function in TextMate : does-it exist somewhere ?
Indeed, I am thinking in an horizontal split....you all know what I mean, I presume. Being able to see two different parts of the same text in the same window (the top and the end of a text, e.g.)
Does anyone has an idea ?
Francois
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi to all,
I am writing a documentation, and started off in HTML.
However, that creates all sorts of problems, so I'd like to do it in
Markdown better.
The problem is, that I have written already half of the documentation
using HTML (which I prefer over Textile or Markdown)
Is there a command to convert back to Markdown from HTML ?
I couldn't see one (I was wondering may be also I broke some stuff,
because of SVN)
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFPZ0m8tSzPOYuZvQRAsUIAKCJp+7jZ50SX2KiXuOFQKUunEilhgCggKBh
83RT4+yz7zE9GPREcCi7maw=
=vAxO
-----END PGP SIGNATURE-----
I'm trying textmate. How best to be introduced to this editor? Is there a tutorial anywhere -- especially a rails specific one?
DHH has a couple of movies featuring textmate. One is called def_end.mov and you can find it at http://media.nextangle.com/textmate/def_end.mov, referenced in his blog entry at http://www.loudthinking.com/arc/000270.html.
The movie shows what is happening, but doesn't indicate what keys are being pressed. He types
Summer
does something and it becomes
class Summer
end
etc. What key sequences are doing this expansion?
Thanks,
Nope, because the command in question rewrites the document. I keep
forgetting to save immediately after and then run into the "revert?"
dialog at some point later, losing (a small amount of) work.
jb
Brad Choate bchoate at gmail.com :
> There's an option for the command that allows you to specify to save
> the current document before invoking it. Is that sufficient?
>
>
> On Oct 27, 2006, at 7:16 AM, Jeremy Bernstein wrote:
>
> > I should have mentioned that the document in question _has_ been
> > previously saved, so it's not a question of TM not knowing where or
> > what to save.
> >
> > jb
Hi all, running svn up *.tmbundle subversion runs for awhile but then
I get the following error:
svn: PROPFIND request failed on '/svn/Bundles/trunk/Bundles'
svn: PROPFIND of '/svn/Bundles/trunk/Bundles': Could not read status
line: Connection reset by peer (http://macromates.com)
Is there a problem with the subversion repository?
Thanks in advance.
All the best, Mark
It seems to me that there is a bug in the smarty bundle. Any time you
have a ' in a comment or as an apostrophe in text (as in don't) it
thinks it's the start of a string and throws off the hilighting for the
rest of the page.
Is this the right place to report this?
Could somebody please add a simple "Entity encode selection" command
to the HTML bundle or maybe send it to this list for those who don't
want to use the new Javascript/ROT 13 based version as described here:
<http://macromates.com/blog/archives/2006/10/16/text-transformations-
screencast/>
Thanks a lot!
Oliver
Hi all,
When I create a new document, if I press the right arrow, even before
writting anything, it moves one space at a time until it reaches the right
of my window. Same behaviour happens in any document. It's as if it couldn't
detect line breaks....
I don't think it used to be like that, have I accidentaly changed a setting?
Thanks
hi everybody.
when viewing the rails documentation (⌃H) for the "render" command,
i get a screen telling me, there's multiple commands which contain
"render". when i click on "ActionController::Base#render", i get
this error:
> /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:167:in
> `display_flow_item': undefined method `join' for "Rendering an
> action":String (NoMethodError)
with this trace:
> from /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:211:in `display_flow'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:210:in `each'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:210:in `display_flow'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:268:in `display_flow'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:63:in
> `display_method_info'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:59:in `page'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:59:in
> `display_method_info'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:59:in
> `report_method_stuff'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:115:in `get_info_for'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:135:in `process_args'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:in `each'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:in `process_args'
> from /usr/bin/ri:48
then follows the first part of the documentation for render:
> ------------------------------------------
> ActionController::Base#render
> render(options = nil, deprecated_status = nil, &block)
> ----------------------------------------------------------------------
> --
> Renders the content that will be returned to the browser as the
> response body.
i wasn't able to reproduce this error with any other documentation,
neither the other "render"-methods nor any other method.
it doesn't seem to be an issue with ri, as it just displays fine if i
use ri from the commandline. remarkably the first part of the
documentation is displayed but the mainpart is missing (about 150
lines).
it's not more than a slight annoyance, as i hardly need the docs for
"render" any more :-).
regards, niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
Does the Commit button inside the svn status window not work? I do Bundles -> Subversion -> Status, then I see a message noting that I have one modified file. I click the "Commit" button, but it says "File(s) not modified; nothing to commit." Here is the output from this window:
--------------------------------------------------------------------
Status for “(selected files)”
M Revert Diff html_common/templates/series_categories.ihtml
Commit
File(s) not modified; nothing to commit.
--------------------------------------------------------------------
Q
On Thu, 26 Oct 2006 15:33:47, romain.guerout(a)stud.unibas.ch wrote:
> OK : after a quick talk with my system administrator,
> who activates the public keys authentification,
> it works great. :-)
>
> Thanks.
:) Glad it is working for you now.
One thing I have noticed since I've been using it. I think I have
the wrong arguments to scp. I was being clever and made scp copy the
permissions bits in both directions. I now believe this is a bad
idea. If you change the permissions on the remote file while
editing, then saving will change them back, which is a hassle.
I haven't updated the tarball on my web page, but given that all the
copying is in the scripts, you can change the args to ssh yourself.
Or even replace ssh with a completely different transport mechanism
if you're so inclined. It just needs to be able to copy the file
both ways.
Be well,
Will :-}
I modded my Textmate Javascript bundle today to treat 'true' and 'false'
different to the other constants.
http://vennt.net/tempting/intelibool.png
So now true gets a green highlight and false a red one so you can read if
statements at a glance etc
Here are the lines I modified
{ name = 'constant.language.js';
match = '\b(false|null|super|this|true)\b';
},
was replaced with
{ name = 'constant.language.js';
match = '\b(null|super|this)\b';
},
{ name = 'constant.language.js.true';
match = '\b(true)\b';
},
{ name = 'constant.language.js.false';
match = '\b(false)\b';
},
Then I just added rules to my current theme for
"constant.language.js.true" and "constant.language.js.false"
I would have done it Textmate wide but I don't know enough about the
system for that, is there any implications for what I have done here?
I'm experimenting with a way to generate id/class names from the
selected text when I trigger one of my headline commands. I really
like the way this turned out and thought I would share it. Unless
someone comes back and asks me to make changes, I promise I'll stop
now. I prefer camel case in CSS files, but I've been known to be
inconsistent. I made commands to switch between the two as well. I
apologize to anyone who is currently rolling their eyes ;->.
I'm attaching the command for an h1 tag with a shortcut key of
command-1 that will take selected text or the whole line and turn it
into a headline. It removes leading spaces and tabs and there's a
camel case version and an underscore version. On a long headline the
id name gets ridiculous, so there's a command that will work on both
to shorten it to the first three words. And lastly, in case you
can't make up your mind either, or need to correct your own
inconsistency like I do, there's a convert command that will switch
back and forth. The shorten and convert commands are set to
command-! (exclamation point). I also used an h1 tab trigger on the
h1 commands which you may want to remove if you keep the original h1
snippets. If used with the tab trigger, they behave just like the
old snippets, except they'll mirror and transform the text you type
between the tags.
Enough rambling.
Brett
I'm wondering why when editing an email message (using the Mail language) the scope is set to:
text.mail.markdown
text.html.markdown
This results in html-style commands and snippets being executed (comments command inserts <! -- -- > style). It seems like Text should be the inherited scope, with modifications ( > set as the comment mark).
Which begs another question: how to import the Text language bundle into the Mail bundle. (So that I can have plain text scopes and thus syntax coloring).
Thanks!
Q
On Thu, 26 Oct 2006 12:19:22, romain.guerout(a)stud.unibas.ch wrote:
> William Uther <willu.mailingLists@...> writes:
>
>>
>> Hi all,
>>
>> I just finished some scripts that allow remote editing with
>> TextMate, kinda like BBedit's sftp functionality. They're a little
>> rough, but I thought I'd release them so that others can play if they
>> want.
>>
>> http://www.cse.unsw.edu.au/~willu/RemoteEdit/
>>
>> Cheers,
>>
>> Will :-}
>
>
> It silently fails for me :-(. I type “mate file†on the
> remote
> machine, it asks for my password on the Mac, keeping an eye
> on my net traffic, I see that the remote file is copied on my Mac
> but nothing happens…
> Is it possible to have more debugging outputs of some sort…
>
> TIA
I'll have a look this weekend. Most of it is pretty simple though -
you could probably add that debugging yourself if you know any shell
script at all. Here's a description of what is going on.
The 'mate' script runs on the remote machine. It is a simple shell
script that ssh's into your mac and runs the 'remoteOpen' script with
the username on the remote machine, the hostname of the remote
machine and the path to the file.
The 'remoteOpen' script scp's the file to the local machine. Given
that this is happening, you know this is being called with correct
arguments. Once it has scp'd the file across, this script calls
'odbedit' on the local file (with '-s remoteOnEdit' arguments which
tells odbedit to call the 'remoteOnEdit' script when the file is
edited. That script just scp's the file back to the remote machine).
I'm guessing this call to odbedit is what is failing. odbedit is not
a script, but is has pretty good debugging output on errors. I
suggest opening a shell on your mac, creating a text file, and
running 'odbedit file' locally to see what happens. The file should
open in TextMate, and odbedit should block. When you close the file
in TextMate, odbedit should unblock and exit.
In more detail, odbedit will send an AppleEvent to ODBForwarder.app
which will forward the AppleEvent to TextMate. When Textmate saves
or closes the file, it will send an AppleEvent back along the same
path. In order for odbedit to find ODBForwarder.app, you need to
have shown the finder where ODBForwarder.app is - open the directory
containing ODBForwarder.app in the finder.
odbedit will give errors to the stdout in the shell you ran it on.
You can see the debugging output for ODBForwarder.app by running /
Applications/Utilities/Console.app . ODBForwarder.app will display a
message there when it starts up, and will display any errors there.
I can imagine two possible errors here:
i) ODBForwarder.app cannot be found or started for some reason. In
this case I would expect to see an error message from odbedit, and
you should not see the startup message from ODBForwarder.app on the
console.
ii) ODBForwarder.app cannot find its preferences file. In this
case it will default to sending its events to BBedit, which you
probably don't have installed :). This should show up as error
messages on the console. For more info on ODBForwarder.app and its
preferences, see http://www.cse.unsw.edu.au/~willu/ODBSuite/
#ODBForwarder
iii) ODBForwarder.app has found its preferences and is sending to
TextMate, but for some reason the events are not getting through.
This should also show up as error messages on the console.
I'm not sure if the error messages are detailed enough to tell the
difference between ii) and iii) by default. Have a look and see what
you get.
Hope that helps. Let me know what happens :)
Will :-}
im getting an error of no files to commit from the svn status window
when clearly there are things to commit by clicking the diff button of
the files above, this is on the latest rev, can anyone else see this ??
Kim
A little quirk with the Latex equation highlighting: if you use an
equation environment like \begin{equation} or \begin{multline},
everything inside of the \begin \end is highlighted as an equation, even
\label{} definitions. Shouldn't things like \label not be colored like
the equation? What do you all thing?
Will
Here's what I'm doing with the repeating tab stops, using </ul> as
the tab trigger. I end up creating one of these on every site I
design, so this will make things easier. They all follow the same
format, and if there are multiple lists, they just change ids. I
have not yet accounted for nested or dropdown menus.
Brett
-----------------------------------------------
Create Navbar:
-----------------------------------------------
<ul id="${1:navbar}"}>
<li class="${2/[[:alpha:]]+|( )/(?1:_:\L$0)/g}"><a href="${3:#}">$2</
a></li>
</ul>$0
Tab Trigger: Navbar
-----------------------------------------------
Create Navbar Menu Item:
-----------------------------------------------
<li class="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}"><a href="${2:#}">$1</
a></li>
</ul>$0
Tab Trigger: </ul>
Hi all,
I just finished some scripts that allow remote editing with
TextMate, kinda like BBedit's sftp functionality. They're a little
rough, but I thought I'd release them so that others can play if they
want.
http://www.cse.unsw.edu.au/~willu/RemoteEdit/
Cheers,
Will :-}
I am faced with introducing a client to using an FTP program. They
use Windows exclusively, so...
What can anyone recommend as a simple, straight-forward, umm... "Mac-
like" FTP client program for Windows? Do any of them offer an "Edit
with..." feature?
I saw mention of "WebDrive" earlier on the list. Something I'd not
heard of and it *might* be the ticket. If I can get them to buy it.
Thanks,
eo
Hi -
I'm blanking, being absolutely sure I've come across this before on
this list, but can't find any references to it. Is there a command
available (from ruby, ideally) to refresh a document, based on
changes made to the associated disk file?
Thanks
Jeremy
I searched the Docs, I can't find a command that would bring up a dialog, let
me enter a line number, say "478" and take me to that line. Is there a way to
do this without creating a bookmark?
Thanks very much,
Steven
P.S. Lovely product, I'm using it to write ActionScript 2.0. Textmate has
really changed the way I work. It's made sitting down to edit my classes
something I really look forward to. Makes bbEdit look like a quaint old antique.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi,
Let's say I have some text of mine in soft column mode with, say, 80
characters width.
Is it possible to copy this text, or change the text, in such a way that
apparent line breaks (ones with the dot appearing after in the beginning of
the next line) change to actual line breaks?
In other words: Is it possible to change apparent line breaks (in soft
column mode) to apparent line breaks?
Cheers,
Ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Dear all,
after receiving many mails with suggestions to improve the
Hypersearch tool I rewrote the whole code.
Short description (for more details see bundle's help):
- look for all occurrences of the search pattern
- normal string search or regular expression (PERL)
- Unicode safe for regular expressions and case insensitivity
- comes with its own dialog (a simplified and modified CocoaDialog)
-- text field for search pattern
-- check boxes for Regular expression, Ignore case, and Wrap long lines
-- each field has its own keyboard shortcut (see help)
- search parameters are persistent and make use of TM_SELECTED_TEXT
- the output is an HTML page
- the lines are implemented as hyperlinks to the line AND column
- there is no need to save your current document in beforehand to use
Hypersearch
Change for the future:
- usage of TM_DIALOG
- add the ability to search across lines
- ...
Feedback is welcomed.
All the best,
Hans-Jörg
**********************************************************
Hans-Joerg Bibiko
Max Planck Institute for Evolutionary Anthropology
Department of Linguistics
Deutscher Platz 6 phone: +49 (0) 341 3550 341
D-04103 Leipzig fax: +49 (0) 341 3550 333
Germany e-mail: bibiko(a)eva.mpg.de
**********************************************************
Currently SQL storage like "varchar(24)" is all defined as storage.type.sql
It would be nice if the numeric length was picked out as
constant.numeric.sql
So a suggestion for whomever maintains the sql bundle: can we change the
simple regexp for storage type to a capture type.
I think something like this?
{ name = 'meta.storage.type.sql';
match =
'(?i:\b(bigint|bigserial|bit|bit\svarying\(\d+\)|boolean|box|bytea|character
\s(varying)?\(\d+\)|char\(\d+\)|var\schar\(\d+\)|char(\(\d+\))?|cidr|circle|
date|double\sprecision|float\(\d+\)|inet|int|integer|interval\(\d+\)|line|ls
eg|macaddr|money|number(\(\d+\))?|numeric(\(\d+,\d+\))?|oid|path|point|polyg
on|real|smallint|serial|sysdate|text|times(\(\d+\))(\swithoutstimeszone)?|ti
mestamp(s(\(\d+\))(\swithoutstimeszone)?)?|tinyint\(\d+\)|varchar\d?(\(\d+\)
)?)\s*)\b';
captures =
{ 1 = { name = 'storage.type.sql'; };
2 = { name = 'constant.numeric.sql'; };
};
},