Hi,
what do I have to do if I want to convert from array.each { |e| puts e } to array.each do |e| puts e end
I found the command toggle 'do ... end' / '{ ... }' but I don't know exactly how to use it. Where has the cursor to be positioned? Do I have to select any text? The shortcut ^{ won't work because I have a German keyboard. But even if I choose the command from the menue nothing happens.
thanks, Martin
On 9 Dec 2009, at 19:11, Martin wrote:
what do I have to do if I want to convert from array.each { |e| puts e } to array.each do |e| puts e end
I found the command toggle 'do ... end' / '{ ... }' but I don't know exactly how to use it. Where has the cursor to be positioned? Do I have to select any text? The shortcut ^{ won't work because I have a German keyboard. But even if I choose the command from the menue nothing happens.
I've found this stopped working with the latest version of TextMate. Presuming changing the path screwed the script somehow but I've not had a chance to investigate it yet.
C --- Caius Durling caius@caius.name +44 (0) 7960 268 100 http://caius.name/
On 09 Dec 2009, at 20:43, Caius Durling wrote:
I found the command toggle 'do ... end' / '{ ... }' but […]
I've found this stopped working with the latest version of TextMate. Presuming changing the path screwed the script somehow but I've not had a chance to investigate it yet.
Latest release has an updated regexp library which fixes a “bug” that this macro relies on.
JEG2 has a fix for this: http://github.com/JEG2/ruby.tmbundle
Sorry about the inconvenience.
On 12/9/09 11:11 AM, in article 4B1FF66D.4000603@gmx.de, "Martin" html-kurs@gmx.de wrote:
what do I have to do if I want to convert from array.each { |e| puts e } to array.each do |e| puts e end
I found the command toggle 'do ... end' / '{ ... }' but I don't know exactly how to use it. Where has the cursor to be positioned? Do I have to select any text?
On my machine it works best if the selection point is between the delimiters.
But I do not download minor updates, so it may be that something has changed recently.
m.
On Thu, Dec 10, 2009 at 7:02 PM, Martin html-kurs@gmx.de wrote:
On my machine it works best if the selection point is between the delimiters.
But I do not download minor updates, so it may be that something has changed recently.
You're right. I've installed version 1.5.9 (1510) and it works as predicted.
I have the same problem. Do I have to reinstall TextMate? Is there any workaround for this?
Wil