Is it possible for Textmate to show in the OS X services menu listing?
Currently BBEdit, TextEdit, and TextWrangler show. Each of these have two options: New Window with Selection Open File
TextMate is not listed. How can I add TextMate to the listing? Thanks
28 dec 2006 kl. 19.30 skrev Lloyd Williams:
TextMate is not listed. How can I add TextMate to the listing? Thanks
As far as I understand it, TextMate has to supply a Service to the OS and to make that happen, Alan has to incorporate that into the code of TextMate. It is off cause possible to create a problem that supplies those two services to the OS and then passes whatever it gets to TextMate, e.g. via AppleScript.
IMHO the service menu is cluttered as it is (even with the help of Service Scrubber) and I don't quite see the benefit of those two simple services, but that's me. :-)
/Jonas
You can use ThisService[1] to create your own services from any script.
[1]: http://wafflesoftware.net/thisservice/
I don't have much time now, but here is a quick script to open selected text in TM:
✂------✂------✂------✂----- #!/usr/bin/env ruby
path = "/tmp/tempText_" + `date "+%d-%m-%G_%H-%M-%S"`.chomp text = <<YOUzWONTzMATCHzTHISzEVA #{STDIN.read} YOUzWONTzMATCHzTHISzEVA
f=File.new(path, "w") f.puts text f.close `open -a TextMate "#{path}"` ✂------✂------✂------✂-----
Save it in a file, select this file in ThisService, choose Type "both" and eventually create a shortcut. Voilà.
BTW, are you aware of the "Edit in Textmate" input manager[2]? It is a much better solution for editable text.
[2]: http://macromates.com/textmate/manual/using_textmate_from_terminal#cocoa_tex...
You can find various contextual menus to do those kind of things in the repository[2]
[3]: http://macromates.com/svn/Bundles/trunk/Tools/CM/
-- FredB
On 12/29/06, Fred B fredb7@gmail.com wrote:
You can use ThisService[1] to create your own services from any script.
I don't have much time now, but here is a quick script to open selected text in TM:
✂------✂------✂------✂----- #!/usr/bin/env ruby
path = "/tmp/tempText_" + `date "+%d-%m-%G_%H-%M-%S"`.chomp text = <<YOUzWONTzMATCHzTHISzEVA #{STDIN.read} YOUzWONTzMATCHzTHISzEVA
f=File.new(path, "w") f.puts text f.close `open -a TextMate "#{path}"` ✂------✂------✂------✂-----
Save it in a file, select this file in ThisService, choose Type "both" and eventually create a shortcut. Voilà.
BTW, are you aware of the "Edit in Textmate" input manager[2]? It is a much better solution for editable text.
You can find various contextual menus to do those kind of things in the repository[2]
-- FredB
Ooops. You should choose Type "Act on Input" instead of "Both". Sorry.
-- FredB http://geekthang.com
Thank you Fred, instal command is what I need. I was searching under "services" in wiki and manual to no avail. Thanks again.
On Dec 29, 2006, at 8:24 , Fred B wrote:
On 12/29/06, Fred B fredb7@gmail.com wrote:
You can use ThisService[1] to create your own services from any script.
I don't have much time now, but here is a quick script to open selected text in TM:
✂------✂------✂------✂----- #!/usr/bin/env ruby
path = "/tmp/tempText_" + `date "+%d-%m-%G_%H-%M-%S"`.chomp text = <<YOUzWONTzMATCHzTHISzEVA #{STDIN.read} YOUzWONTzMATCHzTHISzEVA
f=File.new(path, "w") f.puts text f.close `open -a TextMate "#{path}"` ✂------✂------✂------✂-----
Save it in a file, select this file in ThisService, choose Type "both" and eventually create a shortcut. Voilà.
BTW, are you aware of the "Edit in Textmate" input manager[2]? It is a much better solution for editable text.
using_textmate_from_terminal#cocoa_text_fields
You can find various contextual menus to do those kind of things in the repository[2]
-- FredB
Ooops. You should choose Type "Act on Input" instead of "Both". Sorry.
-- FredB http://geekthang.com
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
The install "edit in TextMate" works now in Mail and Safari but not in Firefox, which is my primary browser. I would like to avoid any shell scripts since that is above my skill set at present. Is there something else I need to do to make it work in Firefox?
On Dec 29, 2006, at 9:12 , Lloyd Williams wrote:
Thank you Fred, instal command is what I need. I was searching under "services" in wiki and manual to no avail. Thanks again.
On Dec 29, 2006, at 8:24 , Fred B wrote:
On 12/29/06, Fred B fredb7@gmail.com wrote:
You can use ThisService[1] to create your own services from any script.
I don't have much time now, but here is a quick script to open selected text in TM:
✂------✂------✂------✂----- #!/usr/bin/env ruby
path = "/tmp/tempText_" + `date "+%d-%m-%G_%H-%M-%S"`.chomp text = <<YOUzWONTzMATCHzTHISzEVA #{STDIN.read} YOUzWONTzMATCHzTHISzEVA
f=File.new(path, "w") f.puts text f.close `open -a TextMate "#{path}"` ✂------✂------✂------✂-----
Save it in a file, select this file in ThisService, choose Type "both" and eventually create a shortcut. Voilà.
BTW, are you aware of the "Edit in Textmate" input manager[2]? It is a much better solution for editable text.
using_textmate_from_terminal#cocoa_text_fields
You can find various contextual menus to do those kind of things in the repository[2]
-- FredB
Ooops. You should choose Type "Act on Input" instead of "Both". Sorry.
-- FredB http://geekthang.com
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 12/29/06, Lloyd Williams wlw3@mac.com wrote:
The install "edit in TextMate" works now in Mail and Safari but not in Firefox, which is my primary browser. I would like to avoid any shell scripts since that is above my skill set at present. Is there something else I need to do to make it work in Firefox?
A version of Firefox that is written in Cocoa which uses NSTextView I think…Camino should work though
Niels
If Camino works, that's news -- I've always wanted to do that, but Camino was no more capable of it than FF was. I suspect (And from the bugzilla reports on the topic I think I'm right) that the requirement to style the text widgets has precluded using platform widgets. Camino adds system-specific chrome to them, but doesn't change the underlying widgets themselves, so there's not a lot to be done about it.
If someone can tell me different, well, I'll do my little happy dance and switch back to Camino.
On 12/29/06, Niels Kobschätzki n.kobschaetzki@googlemail.com wrote:
On 12/29/06, Lloyd Williams wlw3@mac.com wrote:
The install "edit in TextMate" works now in Mail and Safari but not in Firefox, which is my primary browser. I would like to avoid any shell scripts since that is above my skill set at present. Is there something else I need to do to make it work in Firefox?
A version of Firefox that is written in Cocoa which uses NSTextView I think…Camino should work though
Niels
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Chris Rose wrote:
If Camino works, that's news -- I've always wanted to do that, but Camino was no more capable of it than FF was. I suspect (And from the bugzilla reports on the topic I think I'm right) that the requirement to style the text widgets has precluded using platform widgets. Camino adds system-specific chrome to them, but doesn't change the underlying widgets themselves, so there's not a lot to be done about it.
If someone can tell me different, well, I'll do my little happy dance and switch back to Camino.
No, the input manager doesn't currently work with Camino text widgets. I sure wish it did though. Camino is open source, so it should conceivably be possible to figure out how to make the input manager get text out of Camino and back. I'm not up to the task though. It might not even be all that hard, but someone has to go talk to the Camino guys, or dive into Camino/Gecko source, and then figure out how to patch some stuff into the input manager (I believe it already has some special case stuff for Mail.app text widgets, so this would just be another special case). Or maybe we can just lobby Allan about it ;)
-Jacob
On Dec 31, 2006, at 10:35 AM, Jacob Rus wrote:
Chris Rose wrote:
If Camino works, that's news -- I've always wanted to do that, but Camino was no more capable of it than FF was. I suspect (And from the bugzilla reports on the topic I think I'm right) that the requirement to style the text widgets has precluded using platform widgets. Camino adds system-specific chrome to them, but doesn't change the underlying widgets themselves, so there's not a lot to be done about it. If someone can tell me different, well, I'll do my little happy dance and switch back to Camino.
No, the input manager doesn't currently work with Camino text widgets. I sure wish it did though.
I just opened it and didn't had an idea where I find something fast with a text widget and just dried the address bar and there it works ;) Sorry for bringing up any inconvenience through my mail
Niels
Niels Kobschätzki wrote:
On Dec 31, 2006, at 10:35 AM, Jacob Rus wrote:
No, the input manager doesn't currently work with Camino text widgets. I sure wish it did though.
I just opened it and didn't had an idea where I find something fast with a text widget and just dried the address bar and there it works ;)
Yes, it works in any regular cocoa text widgets, such as the ones Camino uses for the address bar. But not the ones in Camino-rendered html text boxes.