Hi
I'm trying to teach TM to play nicely with Gentoo Prefix. (That's Gentoo
Linux installed in a subdir such as /Gentoo which comes with it's own
compiler, but runs on the Darwin kernel. Very handy for Ruby development.)
Even if I set all environment vars explicitly in TM, I have hickups here and
there. I'd like to tell TM to use the bash from Gentoo Prefix
/Gentoo/bin/bash instead of the one coming with Mac OS X. Is there a way to
do that?
Even when doing a "/Gentoo/bin/bash -l" in bash_init.sh and then dump the
environment in a bundle command, I still see "SHELL = /bin/bash" there. Is
bash_init.sh read for scripts run from a bundle command at all?
Cheers and thanks, -svoop
--
View this message in context: http://www.nabble.com/Set-the-SHELL-to-use-for-bundle-commands-tp25877998p2…
Sent from the textmate users mailing list archive at Nabble.com.
I have a question about UI.dialog and/or some general Ruby usage. I
apologize for asking about Ruby stuff here, but this particular problem
seems tied directly to the use of UI.dialog, although I'm pretty sure the
issue is actually a Ruby one on my part (I've been fine Googling for other
Ruby issues, but this one seems pretty niche).
Here's some stripped down code that works:
TextMate::UI.dialog(:nib => nib, :parameters => {}, :center => true) do
|dialog|
dialog.parameters = {'username' => "moo"}
dialog.wait_for_input do |params|
puts params["username"]
end
end
But then I go to try and actually use something with my params hash, like
putting it into a variable declared earlier:
username = ""
TextMate::UI.dialog(:nib => nib, :parameters => {}, :center => true) do
|dialog|
dialog.parameters = {'username' => "moo"}
dialog.wait_for_input do |params|
username = params["username"]
end
end
puts username
Now I get a task that seems to hang, which when forced to quit will report
the following error in Console:
TextMate[13634] *** -[NSMachPort handlePortMessage:]: dropping incoming DO
message because the connection or ports are invalid
Really don't know what to do with this. Sorry, I'm not good enough at either
TextMate's extra features, nor at Ruby. I'm sure this is just a combination
of both of those deficiencies.
Thanks,
Dru
Is there an "Go to last edit" keyboard shortcut, or a way to create one in
TextMate?
Essentially, the idea is that when editing a file, I often move around in
the file to check other things and then want to come back to the place I was
editing to continue what I was doing. Now I have to remember to add a
bookmark, before navigating around, then find that bookmark, and remove it,
which is a bit cumbersome.
Alex
-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/%22Go-to-last-edit%22-keyboard-shortcut-tp25930612p25…
Sent from the textmate users mailing list archive at Nabble.com.
I'm looking to implement a CSS Edit like "Live Preview" either as a
Textmate Plugin (or something simpler if that's an option). The
problem of updating an HTML document loaded from anywhere is simple
Cocoa and Javascript. The part I'm struggling with is getting access
to the current textmate document as an NSString (or something else
workable).
I'm able to get access to OakTextView instance and OakDocument
instance in the plugin, but I just can't figure out how to get a copy
of the current document. xmlRepresentation is the closest I can get,
but it's not really what I want. Can anyone point me in the right
direction for that?