Hi guys,
The sexy and helpful textmate manual says I can fold/unfold code blocks using my F1 key. But I can't get it to work. What needs to be selected? Where should my caret be placed? Do I have to utter some secret magical phrase while clicking F1?
Thanks, Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
Hi guys,
The sexy and helpful textmate manual says I can fold/unfold code blocks using my F1 key. But I can't get it to work. What needs to be selected? Where should my caret be placed? Do I have to utter some secret magical phrase while clicking F1?
Thanks, Sean
Addendum: I just realized that this *does* work splendidly in JavaScript code blocks and presumably others too. But it doesn't seem to work in Ruby (Rails) def/end blocks. Is this a known problem?
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 22, 2006, at 12:03 AM, Sean Schertell wrote:
Addendum: I just realized that this *does* work splendidly in JavaScript code blocks and presumably others too. But it doesn't seem to work in Ruby (Rails) def/end blocks. Is this a known problem?
It works fine for me, at least for def/end blocks. Are you sure the spacing is correct? def and end need to have the same space in front of them. Do you see the matching arrow thingies in the gutter?
Sean
Haris
On Feb 22, 2006, at 3:08 PM, Charilaos Skiadas wrote:
On Feb 22, 2006, at 12:03 AM, Sean Schertell wrote:
Addendum: I just realized that this *does* work splendidly in JavaScript code blocks and presumably others too. But it doesn't seem to work in Ruby (Rails) def/end blocks. Is this a known problem?
It works fine for me, at least for def/end blocks. Are you sure the spacing is correct? def and end need to have the same space in front of them. Do you see the matching arrow thingies in the gutter?
Yeah that's the weird thing. The arrows are there and they work if I click with my mouse. Just F1 doesn't work -- only for Ruby def/end it seems.
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 22, 2006, at 12:27 AM, Sean Schertell wrote:
On Feb 22, 2006, at 3:08 PM, Charilaos Skiadas wrote:
Yeah that's the weird thing. The arrows are there and they work if I click with my mouse. Just F1 doesn't work -- only for Ruby def/ end it seems.
My guess would be that somehow you've set F1 to be a shortcut for some command/snippet/whatnot that is triggered in ruby scope and doesn't really do anything. To test that, create a new command that doesn't really do anything, and assign it to F1. Then, when you press F1, do you get two options to pick from? If you do, then that's the culprit. If not, then I'm not sure what to else to suggest.
Sean
Haris
Thanks fot the tip. Haven't gotten that far in the manual yet but I'll certainly try your suggestion once I learn how to make a command ;-)
Sean
On Feb 22, 2006, at 3:33 PM, Charilaos Skiadas wrote:
On Feb 22, 2006, at 12:27 AM, Sean Schertell wrote:
On Feb 22, 2006, at 3:08 PM, Charilaos Skiadas wrote:
Yeah that's the weird thing. The arrows are there and they work if I click with my mouse. Just F1 doesn't work -- only for Ruby def/end it seems.
My guess would be that somehow you've set F1 to be a shortcut for some command/snippet/whatnot that is triggered in ruby scope and doesn't really do anything. To test that, create a new command that doesn't really do anything, and assign it to F1. Then, when you press F1, do you get two options to pick from? If you do, then that's the culprit. If not, then I'm not sure what to else to suggest.
Sean
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
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 22, 2006, at 12:58 AM, Sean Schertell wrote:
Thanks fot the tip. Haven't gotten that far in the manual yet but I'll certainly try your suggestion once I learn how to make a command ;-)
Hm, if you don't yet know how to make a command, you've probably wouldn't have mangled things. A couple more things to check: 1) If you open the View menu, there's a command: "Fold current block". Does it still have F1 written on its right side? 2) If you open Console.app, are there any messages there related to TextMate? 3) Does your problem remain if you restart TextMate? 4) Can you post an example of an offending block? 5) Have you done a subversion checkout of any bundles, or do you use the stock bundles as they came with TextMate 1.5? 6) When inside the def/end block, what do you see as a tooltip when you press ctrl-shift-p?
Sean
Haris
Wow cheers Haris!
- If you open the View menu, there's a command: "Fold current
block". Does it still have F1 written on its right side?
Yes, and the menu item works (folds the code block) too.
- If you open Console.app, are there any messages there related to
TextMate?
Nope, clean as a whistle.
- Does your problem remain if you restart TextMate?
Yes.
- Can you post an example of an offending block?
I've tried at least a dozen (none work) but here's an example: ##### def billing_cycle_start(cycle) # Special case: First billing cycle start = contract start date return self.starts_on if cycle < 2 self.starts_on >> ( (cycle.to_i-1) * (12/self.group.billing_cycles) ) end #####
- Have you done a subversion checkout of any bundles, or do you
use the stock bundles as they came with TextMate 1.5?
Er... I think I downloaded and double-clicked some sort of ruby on rails bundle at one point. How can I confirm?
- When inside the def/end block, what do you see as a tooltip when
you press ctrl-shift-p?
Yes. It says: source.ruby.rails
Thanks for your help!
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
Ahh -- you were right Haris! It was the "Rails cc" bundle which had hijacked my F1. Now I'm all set. Thanks again!
Sean
On Feb 22, 2006, at 4:26 PM, Sean Schertell wrote:
Wow cheers Haris!
- If you open the View menu, there's a command: "Fold current
block". Does it still have F1 written on its right side?
Yes, and the menu item works (folds the code block) too.
- If you open Console.app, are there any messages there related
to TextMate?
Nope, clean as a whistle.
- Does your problem remain if you restart TextMate?
Yes.
- Can you post an example of an offending block?
I've tried at least a dozen (none work) but here's an example: ##### def billing_cycle_start(cycle) # Special case: First billing cycle start = contract start date return self.starts_on if cycle < 2 self.starts_on >> ( (cycle.to_i-1) * (12/ self.group.billing_cycles) ) end #####
- Have you done a subversion checkout of any bundles, or do you
use the stock bundles as they came with TextMate 1.5?
Er... I think I downloaded and double-clicked some sort of ruby on rails bundle at one point. How can I confirm?
- When inside the def/end block, what do you see as a tooltip
when you press ctrl-shift-p?
Yes. It says: source.ruby.rails
Thanks for your help!
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
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
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 22, 2006, at 1:38 AM, Sean Schertell wrote:
Ahh -- you were right Haris! It was the "Rails cc" bundle which had hijacked my F1. Now I'm all set. Thanks again!
Sean
Heh, I had prepared a long response with further troubleshooting suggestions, and was about to send it when you replied. :) Glad it worked out. Happy coding.
Haris
On Feb 22, 2006, at 1:38 AM, Sean Schertell wrote:
Ahh -- you were right Haris! It was the "Rails cc" bundle which had hijacked my F1. Now I'm all set. Thanks again!
Sean
Heh, I had prepared a long response with further troubleshooting suggestions, and was about to send it when you replied. :) Glad it worked out. Happy coding.
Doh! Sorry about that. Thanks for all your help though. It's nice to finally take a day to go through the entire textmate manual and see all I've been missing. TM is a much deeper well than it appears on the surface!
:-)
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
Charilaos Skiadas wrote:
- When inside the def/end block, what do you see as a tooltip when
you press ctrl-shift-p?
A propos: That's ctrl-shift-t for me, ctrl-shift-p doesn't do anything. I always thought the documentatin was simply outdated in this point, but it seems your TM behaves as documented. Any idea why mine does not?
Regards, Christopher
On Feb 22, 2006, at 7:26 AM, Christopher Creutzig wrote:
Charilaos Skiadas wrote:
- When inside the def/end block, what do you see as a tooltip when
you press ctrl-shift-p?
A propos: That's ctrl-shift-t for me, ctrl-shift-p doesn't do anything. I always thought the documentatin was simply outdated in this point, but it seems your TM behaves as documented. Any idea why mine does not?
This is simply the command "Show scope" in the "TextMate" bundle. If you open it up in the bundle editor (or trace it through ctrl-esc) then you'll see what shortcut is associated to it. My guess is you accidentally changed it.
Regards, Christopher
Haris
Charilaos Skiadas wrote:
This is simply the command "Show scope" in the "TextMate" bundle. If you open it up in the bundle editor (or trace it through ctrl-esc) then you'll see what shortcut is associated to it. My guess is you accidentally changed it.
Must be something like that, but I don't even see the TextMate Bundle in the Bundle editor, nor in the gear menu. ~/Library/Application\ Support/TextMate/Bundles, where I would have expected such local modifications, only has local changes to HTML, LaTeX, and two of my pet projects, no TextMate.tmbundle or the like.
Regards, Christopher
On Feb 22, 2006, at 8:00 AM, Christopher Creutzig wrote:
Must be something like that, but I don't even see the TextMate Bundle in the Bundle editor, nor in the gear menu. ~/Library/Application\ Support/TextMate/Bundles, where I would have expected such local modifications, only has local changes to HTML, LaTeX, and two of my pet projects, no TextMate.tmbundle or the like.
maybe you filtered it out? Try the "Filter List..." button in the bundle editor. If you have disabled the TextMate bundle, I'm surprised you see the scope tooltip at all, unless you rolled your own command to do that.
Regards, Christopher
Haris
Charilaos Skiadas wrote:
On Feb 22, 2006, at 8:00 AM, Christopher Creutzig wrote:
Must be something like that, but I don't even see the TextMate Bundle in the Bundle editor, nor in the gear menu. ~/Library/Application\ Support/TextMate/Bundles, where I would have expected such local modifications, only has local changes to HTML, LaTeX, and two of my pet projects, no TextMate.tmbundle or the like.
maybe you filtered it out? Try the "Filter List..." button in the bundle editor.
Nope, I had checked that already. (I should have mentioned that, sorry.) BTW: The “Filter List …” dialog sheet cannot be closed with the ESC button. Shouldn't it? Still, the only TextMate.tmbundle I can find resides in /Applications/TextMate.app/Contents/ SharedSupport/Bundles and the Show scope.plist in there clearly has ^P. Strange, really.
Regards, Christopher