Have you tried using enter in prefference to return?
I think this depends on the bundle you're useing but using enter (⌅), which is fn-return(⏎) on my Macbook Pro will insert a new line with same indenting as the current line. In the ruby bundle this will also continue comments and other things.
Cheers, Sean.
kartik.thapar wrote:
I am new to textmate. I absolutely don't require indentation rules when using if/switch/case, etc.
I want a very simple indentation rule which makes the next lines's indent same as previous line's indent.
for eg.
sub foo { <- 0 indent my $str = "string"; <- manual indent # <- auto indent (*) } <- manual indent
I am looking for auto indent as described above. Any one know how to do this?
Hi,
Thanks a lot for the reply. But I cannot do so. Can we work out the same with the return key? My return/enter key shows ⏎ sign.
Any ideas?
Sean Dunn wrote:
Have you tried using enter in prefference to return?
I think this depends on the bundle you're useing but using enter (⌅), which is fn-return(⏎) on my Macbook Pro will insert a new line with same indenting as the current line. In the ruby bundle this will also continue comments and other things.
Cheers, Sean.
kartik.thapar wrote:
I am new to textmate. I absolutely don't require indentation rules when using if/switch/case, etc.
I want a very simple indentation rule which makes the next lines's indent same as previous line's indent.
for eg.
sub foo { <- 0 indent my $str = "string"; <- manual indent # <- auto indent (*) } <- manual indent
I am looking for auto indent as described above. Any one know how to do this?
No worries. Which keyboard are you using? Apple full size desktop, Apple mini desktop, a pc-style keyborad or one of the laptops?
On a full sized desktop keyboard it should be enter key on the numeric keypad. The mini keyboard should be the same as a laptop e.g. use the fn key with return key (even if it's not labelled as such).
On my first Intel edition MacBook Pro there was an enter key next to the right cmd key but you should still able to use fn-return (I alway remap which ever key is next to the right cmd key to be an extra control key myself).
Cheers, Sean.
kartik.thapar wrote:
Hi,
Thanks a lot for the reply. But I cannot do so. Can we work out the same with the return key? My return/enter key shows ⏎ sign.
Any ideas?
I am using the full-key wired apple keyboard. I have the enter key on the numpad. I have tried that as well.
The problem is that it won't indent.
Sean Dunn wrote:
No worries. Which keyboard are you using? Apple full size desktop, Apple mini desktop, a pc-style keyborad or one of the laptops?
On a full sized desktop keyboard it should be enter key on the numeric keypad. The mini keyboard should be the same as a laptop e.g. use the fn key with return key (even if it's not labelled as such).
On my first Intel edition MacBook Pro there was an enter key next to the right cmd key but you should still able to use fn-return (I alway remap which ever key is next to the right cmd key to be an extra control key myself).
Cheers, Sean.
kartik.thapar wrote:
Hi,
Thanks a lot for the reply. But I cannot do so. Can we work out the same with the return key? My return/enter key shows ⏎ sign.
Any ideas?
Sean - just curious (a little bit OT), do you mean you remap the key next to the righthand CMD key system wide to be a CTRL key? on my Intel Core Duo 2 MBP it is an Option key that I never use - I'd be more than psyched to change it over to a CTRL key - *just on that side* of course.
curious - can you share?
b
On Dec 7, 2010, at 8:05 AM, Sean Dunn wrote:
[...]
On my first Intel edition MacBook Pro there was an enter key next to the right cmd key but you should still able to use fn-return (I alway remap which ever key is next to the right cmd key to be an extra control key myself).
Cheers, Sean.
kartik.thapar wrote:
Hi,
Thanks a lot for the reply. But I cannot do so. Can we work out the same with the return key? My return/enter key shows ⏎ sign.
Any ideas?
-- View this message in context: http://old.nabble.com/Next-line-indentation-tp30308903p30397747.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
@b I use http://doublecommand.sourceforge.net/ doublecommand to remap either enter on my old machine or alt on the new ones. I first remapped it on the old machine as the enter key seemed a bit redundant. On the newer notebooks it's still well worth doing IMHO. I really wish they could squeeze an extra key in there but I'm not sure where though. :)
@kartik Sorry, I don't have a good answer for you then. For me, hitting return gives me the indentation of the previous line. The only times this lets me down is when I want TextMate to indent to the bracket on the previous line and I'm working on that...
plastichairdoo wrote:
Sean - just curious (a little bit OT), do you mean you remap the key next to the righthand CMD key system wide to be a CTRL key? on my Intel Core Duo 2 MBP it is an Option key that I never use - I'd be more than psyched to change it over to a CTRL key - *just on that side* of course.
curious - can you share?
b