I just noticed that <%= %> and <% %> have been moved from Rails to Ruby. But it does not work now in either. I tried text.rhtml for scope but it didn't help either. Did a svn up also.
ANy help will be greatly appreaciated.
Thanks,
bakki
On Nov 4, 2006, at 4:44 PM, Bakki Kudva wrote:
I just noticed that <%= %> and <% %> have been moved from Rails to Ruby. But it does not work now in either. I tried text.rhtml for scope but it didn't help either. Did a svn up also.
^X and ^Z were deprecated in favor of the more intuitive ^> shortcut .
From the svn log:
"[NEW] The Ruby bundle has a new snippet to generate ERb's <% … %> and <%= … %> tags. Both tags are available via control > (⌃>). Add a tab (⇥) after triggering the snippet if you wish to keep the =. This depreciates the control X (⌃X) and control Z (⌃Z) snippets from the Rails bundle and they will be removed in the future. This feature was designed by the ANSI TextMate Standards Comity"
On Nov 4, 2006, at 4:44 PM, Bakki Kudva wrote:
I just noticed that <%= %> and <% %> have been moved from Rails to Ruby. But it does not work now in either. I tried text.rhtml for scope but it didn't help either. Did a svn up also.
These commands are now on control > (⌃>). Here's the release not where we announced the change:
[NEW] The Ruby bundle has a new snippet to generate ERb’s <% … %> and <%= … %> tags. Both tags are available via control > (⌃>). First press will insert <%= … %> (optionally using the current selection as the content). A second press will remove/add the equal sign. This depreciates the control X (⌃X) and control Z (⌃Z) snippets from the Rails bundle and they will be removed in the future. This feature was designed by the ANSI TextMate Standards Committee. (James Edward Gray II)
James Edward Gray II
Oops. I did read the release notes and I forgot to mention that ^> also does not work for me. I just can't seem to figure it out. All tab triggered snippets seem to work. I reinstalled TextMate, and deleted the ~/Library/Application\ Support/Textmate dir and tried changing scope to text.rhtml, souce.yaml and reloaded bundles.
BTW, James I got your book and really like it. A suggestion I have, if I may, is to add a section on the file layout of TextMate. What dirs/files go where on the disk what they mean. WHat overides what etc. I was new to MacOSX at the time and took me a bit to figure these things out. Some of it is in the Manual but other little factoids are in the wiki etc. It could be a front end to the "TextMate's environment" section.
Thank you Sebastian and James for your replies.
bakki
On 11/4/06, James Edward Gray II james@grayproductions.net wrote:
On Nov 4, 2006, at 4:44 PM, Bakki Kudva wrote:
I just noticed that <%= %> and <% %> have been moved from Rails to Ruby. But it does not work now in either. I tried text.rhtml for scope but it didn't help either. Did a svn up also.
These commands are now on control > (⌃>). Here's the release not where we announced the change:
[NEW] The Ruby bundle has a new snippet to generate ERb's <% … %> and <%= … %> tags. Both tags are available via control > (⌃>). First press will insert <%= … %> (optionally using the current selection as the content). A second press will remove/add the equal sign. This depreciates the control X (⌃X) and control Z (⌃Z) snippets from the Rails bundle and they will be removed in the future. This feature was designed by the ANSI TextMate Standards Committee. (James Edward Gray II)
James Edward Gray II
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 Nov 4, 2006, at 5:18 PM, Bakki Kudva wrote:
Oops. I did read the release notes and I forgot to mention that ^> also does not work for me.
Hmm, something is fishy here. If you look in the Ruby bundle do you see a snippet called Insert ERb’s <% .. %> or <%= .. %>?
BTW, James I got your book and really like it.
Thank you so much!
A suggestion I have, if I may, is to add a section on the file layout of TextMate.
You mean the bundle structure?
I've discussed this with the editor and publisher, word is still out but it doesn't look good. Sadly we only have so much space and need to make sure we are filling it with the stuff everyone needs.
If it turns out to be a big problem in technical review though we will revisit it. Thanks for the suggestion though. We are considering it.
James Edward Gray II
On 11/4/06, James Edward Gray II james@grayproductions.net wrote:
On Nov 4, 2006, at 5:18 PM, Bakki Kudva wrote:
Hmm, something is fishy here. If you look in the Ruby bundle do you see a snippet called Insert ERb's <% .. %> or <%= .. %>?
Yes. I did see it. It's scope selector was text.html, source.yaml. I thought that perhaps it had to have either text.html.ruby or text.rhtml to activate it in that scope. But both didn't work.
A suggestion I have, if I may, is to add a section on the file layout of TextMate.
You mean the bundle structure?
No. I was confused with bundles being in 3 locations: ~/Library/Application\ Support/TextMate/Bundles/ /Library/Application\ Support/TextMate/Bundles/ /Applications/Textmate.app/contents/SharedSupport/Bundles
An explanation of how TextMate uses these and other directories would be helpful to newbies.
Consider the problem I am having now. What sort of interaction is causing this? I also would like to know how default keybindings work and how they are overriden. That's what I have been snooping around all these directories but haven't come up with the cause of the problem.
I've discussed this with the editor and publisher, word is still out but it doesn't look good. Sadly we only have so much space and need to make sure we are filling it with the stuff everyone needs.
I understand.
If it turns out to be a big problem in technical review though we will revisit it. Thanks for the suggestion though. We are considering it.
You are welcome James. Keep up the great work.
-bakki
On Nov 4, 2006, at 8:30 PM, Bakki Kudva wrote:
Hmm, something is fishy here. If you look in the Ruby bundle do you see a snippet called Insert ERb's <% .. %> or <%= .. %>?
Yes. I did see it. It's scope selector was text.html, source.yaml. I thought that perhaps it had to have either text.html.ruby or text.rhtml to activate it in that scope. But both didn't work.
Does the command work if you select it from the menu instead?
Haris
On 11/4/06, Charilaos Skiadas skiadas@hanover.edu wrote:
On Nov 4, 2006, at 8:30 PM, Bakki Kudva wrote:
Does the command work if you select it from the menu instead?
Yes it does. I was using it that way but then it is just faster to type it in which is what I am doing now.
Haris
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 Nov 5, 2006, at 6:51 PM, Bakki Kudva wrote:
On 11/4/06, Charilaos Skiadas skiadas@hanover.edu wrote:
On Nov 4, 2006, at 8:30 PM, Bakki Kudva wrote:
Does the command work if you select it from the menu instead?
Yes it does. I was using it that way but then it is just faster to type it in which is what I am doing now.
Ok, that means the command is fine, it's just the triggering mechanism that fails on us. So let's check things again. In the Ruby bundle you should find two things:
A snippet, titled "Insert ERb's <%…%>.…", with key equivalent ^> and scope selector "text.html" A command, titled "Toggle ERb tags", with key equivalent ^> and scope selector "source.ruby.embedded, source.ruby.rails.embedded"
Is that so?
Haris
Haris
On 11/5/06, Charilaos Skiadas skiadas@hanover.edu wrote:
On Nov 5, 2006, at 6:51 PM, Bakki Kudva wrote:
Ok, that means the command is fine, it's just the triggering mechanism that fails on us. So let's check things again. In the Ruby bundle you should find two things:
A snippet, titled "Insert ERb's <%…%>.…", with key equivalent ^> and scope selector "text.html"
Yes.
A command, titled "Toggle ERb tags", with key equivalent ^> and scope selector "source.ruby.embedded, source.ruby.rails.embedded"
and yes here too !!
All my bundles are in /Library/Application\ Support/TextMate/Bundles which i keep update via svn. I don't have any in my ~/Library/Application\ Support/TextMate/Bundles -- if that gives any clues.
Thanks for your efforts to help me.
-bakki
Is that so?
Haris
Haris
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 6. Nov 2006, at 00:51, Bakki Kudva wrote:
On 11/4/06, Charilaos Skiadas skiadas@hanover.edu wrote:
Does the command work if you select it from the menu instead?
Yes it does. I was using it that way but then it is just faster to type it in which is what I am doing now.
Are you using a US keymap? If so, are you pressing control-shift-. (which is what the control-> key binding would require)
On 11/5/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 6. Nov 2006, at 00:51, Bakki Kudva wrote:
Are you using a US keymap? If so, are you pressing control-shift-. (which is what the control-> key binding would require)
I am using US keymap and I did try ^shift> and it does not work.
-bakki
On 11/5/06, Allan Odgaard throw-away-1@macromates.com wrote:
Are you using a US keymap? If so, are you pressing control-shift-. (which is what the control-> key binding would require)
I had installed Peter Mauer's KeyCode app and verified the key output. This is what I get:
For ^P
Unicode: 16 / 0x10 Keys: ^P Key Code: 35 / 0x23 Modifiers: 262401 / 0x40101
For ^ShiftP
Unicode: 16 / 0x10 Keys: Shift^P Key Code: 35/ 0x23 Modifiers: 393475 / 0x60103
Thanks Allan,
bakki
On Nov 4, 2006, at 7:30 PM, Bakki Kudva wrote:
On 11/4/06, James Edward Gray II james@grayproductions.net wrote:
On Nov 4, 2006, at 5:18 PM, Bakki Kudva wrote:
Hmm, something is fishy here. If you look in the Ruby bundle do you see a snippet called Insert ERb's <% .. %> or <%= .. %>?
Yes. I did see it. It's scope selector was text.html, source.yaml. I thought that perhaps it had to have either text.html.ruby or text.rhtml to activate it in that scope. But both didn't work.
Hmm, I cannot say what exactly is going on here. Something it goofy, for sure. What do you see when you hit ⌃⇧P in the area you are trying to use ⌃>?
James Edward Gray II
On 11/5/06, James Edward Gray II james@grayproductions.net wrote:
Hmm, I cannot say what exactly is going on here. Something it goofy, for sure. What do you see when you hit ⌃⇧P in the area you are trying to use ⌃>?
I am assuming you are saying ^shiftP? In gmail I couldn't make out the character between ^ and P in your msg. If I do ^shiftP I get source.ruby.rails, which I take is the scope?
bakki
James Edward Gray II ______________________________________________________________________ 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
Hi,
Is the language set to be "HTML (Rails)" at the base of the page (ie the name next to the little L in a circle)? The shortcut doesn't work here if the language is either "Ruby on Rails" or "Ruby".
I trust that's how it's meant to work: makes sense to me!
Cheers, Paul
On 11/5/06, Paul McCann paul.mccann@adelaide.edu.au wrote:
Hi,
Is the language set to be "HTML (Rails)" at the base of the page (ie the name next to the little L in a circle)? The shortcut doesn't work here if the language is either "Ruby on Rails" or "Ruby".
I trust that's how it's meant to work: makes sense to me!
Bingo!! You got the winning number. Thank you Paul. That was the problem. That was one thing I did not try and SHOULD HAVE BEEN THE FIRST THING TO TRY! Sorry I took precious time from all you guys, but thanks a million for helping me.
-bakki
Cheers, Paul
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