What is the shortcut to select columns (block) of text? I'm using ⌥ and selecting with the mouse, but I would only use the keyboard.
On Apr 28, 2011, at 2:00 PM, Adimir wrote:
What is the shortcut to select columns (block) of text? I'm using ⌥ and selecting with the mouse, but I would only use the keyboard.
You can select a linear selection as normal (with the keyboard) and then just tap the option key. It will turn the linear selection into a columnar selection by using the start and end points of the linear selection as opposing corners of the block. Tap again to go back.
That is probably my favorite-yet-obscure TextMate feature.
And it's truly painful when I realize (too late, after muscle memory did its thing) that it's not a universal feature that all text editors have.
+dru
Thanks, after trying a few times, began to work.
Cool. I didn't know that. I use column select a lot, but had used the mouse + drag. Thanks!
On Thu, Apr 28, 2011 at 1:45 PM, Dru Kepple dru@summitprojects.com wrote:
On Apr 28, 2011, at 2:00 PM, Adimir wrote:
What is the shortcut to select columns (block) of text? I'm using ⌥ and selecting with the mouse, but I would only use the keyboard.
You can select a linear selection as normal (with the keyboard) and then just tap the option key. It will turn the linear selection into a columnar selection by using the start and end points of the linear selection as opposing corners of the block. Tap again to go back.
That is probably my favorite-yet-obscure TextMate feature.
And it's truly painful when I realize (too late, after muscle memory did its thing) that it's not a universal feature that all text editors have.
+dru
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
You can select a linear selection as normal (with the keyboard) and then just tap the option key. It will turn the linear selection into a columnar selection by using the start and end points of the linear selection as opposing corners of the block. Tap again to go back.
That is probably my favorite-yet-obscure TextMate feature.
And it's truly painful when I realize (too late, after muscle memory did its thing) that it's not a universal feature that all text editors have.
+dru
This is a very nice tip, thanks!
-Jenny
On 2011-04-28 17:45, Dru Kepple wrote:
You can select a linear selection as normal (with the keyboard) and then just tap the option key. It will turn the linear selection into a columnar selection by using the start and end points of the linear selection as opposing corners of the block. Tap again to go back.
Nice, but it doesn't always work for me. It *usually* works, but sometimes I have to pound on the option key a few times to get it to take. This happens both with my laptop's built-in keyboard and the external keyboard, so I don't think it's just a bad key.
One of the first things I did with TM was to make a set of macros: Select Block bound to ^B (moveRightAndModifySelection, toggleColumnSelection), Select Line bound to ^L (selectHardLine), and Select Nothing bound to ESC (moveRightAndModifySelection, moveLeft). I don't remember for sure, but I might have had to edit the *.tmMacro files by hand to get exactly the behavior I wanted.
On Apr 29, 2011, at 6:56 AM, Steve King wrote:
Nice, but it doesn't always work for me. It *usually* works, but sometimes I have to pound on the option key a few times to get it to take. This happens both with my laptop's built-in keyboard and the external keyboard, so I don't think it's just a bad key.
Weird...I've not had a problem with it ever not working. But it doesn't sound you're alone. Maybe this can be fixed in TextMate 2!!!!!
(Too soon?)
+dru