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
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 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.
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 22, 2006, at 12:27 AM, Sean Schertell wrote:
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:
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 22, 2006, at 12:58 AM, Sean Schertell wrote:
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!
Yes, and the menu item works (folds the code block) too.
Nope, clean as a whistle.
Yes.
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 #####
Er... I think I downloaded and double-clicked some sort of ruby on rails bundle at one point. How can I confirm?
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:
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
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
On Feb 22, 2006, at 7:26 AM, Christopher Creutzig 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.
Regards, Christopher
Haris
Charilaos Skiadas 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.
Regards, Christopher
On Feb 22, 2006, at 8:00 AM, Christopher Creutzig wrote:
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:
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